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

Pre-emptive fix for upstream dask.dataframe.read_parquet changes #12983

Merged
merged 15 commits into from
Mar 23, 2023

Conversation

rjzamora
Copy link
Member

@rjzamora rjzamora commented Mar 21, 2023

Description

Once dask/dask#10007 is merged, users will be able to pass a dictionary of hive-partitioning options to dd.read_parquet (using the dataset= kwarg). This new feature provides a workaround for the fact that pyarrow.dataset.Partitioning objects cannot be serialized in Python. In order for this feature to be supported in dask_cudf the CudfEngine.read_partition method must account for the case that partitioning is a dict.

NOTE:
It is not possible to add test coverage for this change until dask#10007 is merged. However, I don't see any good reason not to merge this PR before dask#10007.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@rjzamora rjzamora added bug Something isn't working 2 - In Progress Currently a work in progress dask Dask issue non-breaking Non-breaking change labels Mar 21, 2023
@rjzamora rjzamora requested a review from a team as a code owner March 21, 2023 18:06
@github-actions github-actions bot added the Python Affects Python cuDF API. label Mar 21, 2023
Comment on lines +124 to +125
dataset_kwargs=dataset_kwargs,
categorical_partitions=False,
Copy link
Member Author

@rjzamora rjzamora Mar 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing minor mistake in #12756 (these args should match those used in the try block)

@rjzamora rjzamora added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Mar 21, 2023
Copy link
Contributor

@wence- wence- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think this can go in before the dask-side change.

@rjzamora rjzamora added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 3 - Ready for Review Ready for review by team 4 - Needs Dask Reviewer labels Mar 23, 2023
@rjzamora
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit 5cdb9d9 into rapidsai:branch-23.04 Mar 23, 2023
@rjzamora rjzamora deleted the preemptive-hive-fix branch March 24, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge bug Something isn't working dask Dask issue non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants