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 paritioned parquet dataset #8

Closed
alippai opened this issue Jun 14, 2022 · 5 comments
Closed

Support paritioned parquet dataset #8

alippai opened this issue Jun 14, 2022 · 5 comments

Comments

@alippai
Copy link
Contributor

alippai commented Jun 14, 2022

File location patterns mydata/*.parquet and mydata/partition=01/*.parquet are common storage formats. Is it possible to support reading mydata in these cases? In theory Datafusion should have some support

@timvw
Copy link
Owner

timvw commented Jun 14, 2022

I have asked and implemented the same globbing feature(s) in datafusion: isue-2393, but not sure how much of that is still supported after the recent refactorings...

In my example I have the following:

  • s3://bucket/events/year=2022/month=4/day=5/part-xxx.c000.snappy.parquet
  • s3://bucket/events/year=2022/month=4/day=4/part-xxx.c000.snappy.parquet
    The following just works: qv s3://bucket/events

Unfortunately, the following does not work (anymore):
qv "s3://bucket/events/year=2022/month=4/**/*.parquet"

@alippai
Copy link
Contributor Author

alippai commented Jun 14, 2022

Specifying the parent directory fails if other files are there eg. _SUCCESS generated by Apache Spark and mydata/*.parquet globbing doesn't work.

@timvw
Copy link
Owner

timvw commented Jun 15, 2022

Correct (That reminds me of why I wanted the feature in the first place ;)).

Will look into this again once datafusion has onboarded the iox objectstore...

@alippai
Copy link
Contributor Author

alippai commented Jun 15, 2022

Makes sense, thank you.

@timvw
Copy link
Owner

timvw commented Sep 19, 2022

In the newest release there is now support for globbing as well :) (
eg: qv "s3://datafusion-parquet-testing/data/alltypes_pla*n.parquet" works as expected

I have also updated the "listing" of files such that hidden files/directories such as_SUCCESS/_temporary are excluded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants