folder with multiple files #24474
-
I have a folder in S3 's3://prod-raw-cvm/dados_abertos/2024-12-10/adm_cart/cad/dados/cad_adm_cart.zip/'. But, in this folder I have multiple files. So, I tried to create one table for each file, like this: CREATE TABLE IF NOT EXISTS hive.cvm.cad_adm_cart_pj ( And this does not work. It only works loading all the files from the source. I'm using hive with this configs: hive.metastore.glue.aws-access-key=MY_KEY fs.native-s3.enabled=true |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hive tables can only point to folders not to individual files. This is how hive itself works. Alternatively look at trino-storage plugin (https://github.com/snowlift/trino-storage). |
Beta Was this translation helpful? Give feedback.
Hive tables can only point to folders not to individual files. This is how hive itself works.
Alternatively look at trino-storage plugin (https://github.com/snowlift/trino-storage).