Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support globbing for multiple parquet files? #24

marklit opened this issue Jun 25, 2018 · 1 comment

Support globbing for multiple parquet files? #24

marklit opened this issue Jun 25, 2018 · 1 comment


Copy link

@marklit marklit commented Jun 25, 2018

Is there a way I can load multiple parquet files?

My first guess brings back the following IOError from Arrow:

CREATE VIRTUAL TABLE trips USING parquet('parquet/*');
Error: Arrow error: IOError: Failed to open local file: parquet/* , error: No such file or directory

For the record there are two parquet files in that folder.

$ ls -l parquet/00000*
-rw-rw-r-- 1 mark mark 2079571240 Jun 25 05:58 parquet/000000_0
-rw-rw-r-- 1 mark mark 2053401839 Jun 25 06:07 parquet/000001_0
Copy link

@cldellow cldellow commented Jun 25, 2018

I'd like to support this more seamlessly in the future, either by supporting a glob or, like Hive, taking a directory to query. There are some internal design things I'd have to think about first, though.

Until then, the best I can suggest is to create N tables, one per parquet file, then create a view that UNION ALLs the tables. If you invoke sqlite like sqlite3 mydb.db, it will persist the view so that future invocations of sqlite don't need to recreate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants