How does presto read local files in parquet format #18182
-
presto has the "Local File Connector" , but maybe it only reads http_request_log. I do not know how to read l local file in parquet format |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@jiangjiguang there is an undocumented hive connector feature where you can set the following config and use a local directory as the catalog.
Now, you have to create a table say We should also have a formal way in Presto to read local Parquet/ORC files. I will look into formalizing the |
Beta Was this translation helpful? Give feedback.
@jiangjiguang there is an undocumented hive connector feature where you can set the following config and use a local directory as the catalog.
Now, you have to create a table say
customer
using the parquet file schema.You will see a folder with this table name
/mnt/hive_data/customer
Then move your parquet file to this folder. You should be able to query the Parquet file.
We should also have a formal way in Presto to read local Parquet/ORC files. I will look into formalizing the
hive.metastore=file
.