Introduce basic "cudf" backend for Dask Expressions#14805
Merged
rapids-bot[bot] merged 136 commits intorapidsai:branch-24.04from Mar 11, 2024
Merged
Introduce basic "cudf" backend for Dask Expressions#14805rapids-bot[bot] merged 136 commits intorapidsai:branch-24.04from
rapids-bot[bot] merged 136 commits intorapidsai:branch-24.04from
Conversation
…o new-dask-expr-backend
raydouglass
approved these changes
Mar 7, 2024
Contributor
raydouglass
left a comment
There was a problem hiding this comment.
ops-codeowners changes look good
Member
Author
|
/merge |
Contributor
Contributor
|
I'll merge the upstream so that the |
Member
Author
|
/merge |
3 tasks
rapids-bot bot
pushed a commit
that referenced
this pull request
Mar 20, 2024
Fixes CI blocked by dask-expr. xref: - #14805 - rapidsai/rapids-dask-dependency#33 Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Ray Douglass (https://github.com/raydouglass) - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #15343
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Mostly addresses #15027
dask/dask-expr#728 exposed the necessary mechanisms for us to define a custom dask-expr backend for
cudf. The new dispatching mechanisms are effectively the same as those indask.dataframe. The only difference is that we are now registering/implementing "expression-based" collections.This PR does the following:
DataFrameBackendEntrypointclass for collection creation, and registers new collections usingget_collection_type.dask_cudfimport structure to properly support the"dataframe.query-planning"configuration.dask_cudftests. This coverage can be expanded in follow-up work.Experimental Change: This PR patchesdask_expr._expr.Expr.__new__to enable type-based dispatching. This effectively allows us to surgically replace problematicExprsubclasses that do not work for cudf-backed data. For example, this PR replaces the upstreamTakeLastexpression to avoid usingsqueeze(since this method is not supported by cudf). This particular fix can be moved upstream relatively easily. However, having this kind of "patching" mechanism may be valuable for more complicated pandas/cudf discrepancies.Usage example
Dask cuDF should now be using dask-expr for "query planning":
TODO
Follow Up Work: