Repository navigation
Conversation
…and construct_partition_plan
| paths, | ||
| directory_partitions, | ||
| directory_partition_keys, | ||
| ) = collect_partitions(paths, root_dir, fs) |
There was a problem hiding this comment.
@rjzamora would you be interested in letting pyarrow handle this part of the logic? (as it can do for pyarrow-dataset engine for parquet)
I know this is not yet possible with the released pyarrow, but I could collaborate on it to ensure we have ORC support in the dataset APIs in the next pyarrow release (scheduled half october, and we can already test it with the nightly releases before that).
That's of course not a short-term solution, and I don't know how time sensitive this PR is (so no problem if you want to see this feature earlier), but it would avoid writing a lot of custom code in this PR that could become obsolete if pyarrow.datasets supported it.
There was a problem hiding this comment.
I just wanted to open an issue for it on the Arrow side, but I see you already did! -> https://issues.apache.org/jira/browse/ARROW-13572
There was a problem hiding this comment.
would you be interested in letting pyarrow handle this part of the logic?
I would be very interested in this :)
I know this is not yet possible with the released pyarrow, but I could collaborate on it to ensure we have ORC support in the dataset APIs in the next pyarrow release (scheduled half october, and we can already test it with the nightly releases before that).
As much as I don't "want" to, I may need to try to merge code (like collect_partitions), even though I fully expect it to become obsolete very quickly. I'd much rather rely on the pyarrow.dataset API here, but there is somewhat of an urgent need to get hive-partitioned ORC support out with the October cudf release (and using the October pyarrow release may be cutting things a bit close). With that said, I do think it makes a lot of sense for us to start collaborating on the pyarrow.dataset-version of this code asap, and to make sure the place-holder collect_partitions-like logic is designed in such a way that pyarrow.dataset can be "dropped in" for pa.version > 5.0.0 (or whatever the appropriate version cutoff may be).
|
@dask/io @jrbourbeau - I am hoping to start by getting some logistical feedback here. As discussed in this PR, it seems that ORC support in My question: Is there any short-term interest in having partitioning/filtering support in ORC, or can we just hold off until after the next pyarrow release? If dask-dataframe users are fine with a delay (which I expect is the case), I will close this PR for now, and just move (most of) these changes into dask-cudf. Once the pyarrow changes are ready, this PR can be dramatically simplified anyway. |
|
Closing in favor of the plan to wait on |
|
@rjzamora as a heads up: basic support for reading ORC files in the dataset API has landed in Arrow master (and will be available tomorrow in nightly packages), in case you already want to start trying it out in advance of the pyarrow 6.0 release (which would be good to ensure it's in a good enough state for this use case) |
This PR is a follow-up to #7756. The new changes are focused on directory partitioning (
partition_onsupport into_orc, and partition-column handling/filtering inread_orc).