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

Update to Dask's shuffle_method kwarg #14708

Merged
merged 4 commits into from
Jan 4, 2024

Conversation

pentschev
Copy link
Member

dask/dask#10738 has deprecated the shuffle kwarg in favor of shuffle_method which now raises a FutureWarning. This change transitions to the new kwarg.

Description

Checklist

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

dask/dask#10738 has deprecated the `shuffle`
kwarg in favor of `shuffle_method` which now raises a `FutureWarning`.
This change transitions to the new kwarg.
@pentschev pentschev requested a review from a team as a code owner January 4, 2024 09:34
@github-actions github-actions bot added the Python Affects Python cuDF API. label Jan 4, 2024
@pentschev pentschev added bug Something isn't working 3 - Ready for Review Ready for review by team breaking Breaking change dask Dask issue labels Jan 4, 2024
Copy link
Member

@rjzamora rjzamora left a comment

Choose a reason for hiding this comment

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

Thanks for jumping on this @pentschev !

python/dask_cudf/dask_cudf/sorting.py Outdated Show resolved Hide resolved
@pentschev
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit fab5af2 into rapidsai:branch-24.02 Jan 4, 2024
68 checks passed
@pentschev
Copy link
Member Author

Thanks for the review @rjzamora !

rapids-bot bot pushed a commit to rapidsai/dask-cuda that referenced this pull request Jan 4, 2024
dask/dask#10738 has deprecated the `shuffle` kwarg in favor of `shuffle_method` which now raises a `FutureWarning`. This change transitions to the new kwarg.

Requires rapidsai/cudf#14708 .

Authors:
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - Richard (Rick) Zamora (https://github.com/rjzamora)

URL: #1300
@pentschev pentschev deleted the use-dask-shuffle_method branch January 5, 2024 16:18
rapids-bot bot pushed a commit that referenced this pull request Jan 17, 2024
It seems that #14708 was a bit too aggressive in updating the `shuffle` kwarg to `shuffle_method`, and [gpu-CI is currently failing](dask/dask#10809) in dask/dask.

This PR aligns dask-cudf with `dask.dataframe` by warning the user when the `shuffle` argument is used (rather than raising an error). I definitely don't think it makes sense for RAPIDS to be **more** strict than dask/dask about this argument.

This also fixes a bug in `groupby.aggregate()` (where we were still using `shuffle=`)

Authors:
  - Richard (Rick) Zamora (https://github.com/rjzamora)

Approvers:
  - https://github.com/jakirkham

URL: #14762
younseojava pushed a commit to ROCm/dask-cuda-rocm that referenced this pull request Apr 16, 2024
dask/dask#10738 has deprecated the `shuffle` kwarg in favor of `shuffle_method` which now raises a `FutureWarning`. This change transitions to the new kwarg.

Requires rapidsai/cudf#14708 .

Authors:
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - Richard (Rick) Zamora (https://github.com/rjzamora)

URL: rapidsai#1300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team breaking Breaking change bug Something isn't working dask Dask issue Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants