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

Single-partition Dask executor for cuDF-Polars #17262

Merged
merged 67 commits into from
Nov 25, 2024

Conversation

rjzamora
Copy link
Member

@rjzamora rjzamora commented Nov 7, 2024

Description

The goal here is to lay down the initial foundation for dask-based evaluation of IR graphs in cudf-polars. The first pass will only support single-partition workloads. This functionality could be achieved with much less-complicated changes to cudf-polars. However, we do want to build multi-partition support on top of this.

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 5 - DO NOT MERGE Hold off on merging; see PR for details improvement Improvement / enhancement to an existing function non-breaking Non-breaking change cudf.polars Issues specific to cudf.polars labels Nov 7, 2024
@rjzamora rjzamora self-assigned this Nov 7, 2024
@github-actions github-actions bot added the Python Affects Python cuDF API. label Nov 7, 2024
@rjzamora rjzamora added 2 - In Progress Currently a work in progress and removed 5 - DO NOT MERGE Hold off on merging; see PR for details labels Nov 7, 2024
python/cudf_polars/cudf_polars/callback.py Outdated Show resolved Hide resolved
python/cudf_polars/cudf_polars/dsl/ir.py Outdated Show resolved Hide resolved
python/cudf_polars/cudf_polars/dsl/ir.py Show resolved Hide resolved
python/cudf_polars/cudf_polars/experimental/single.py Outdated Show resolved Hide resolved
python/cudf_polars/cudf_polars/experimental/single.py Outdated Show resolved Hide resolved
python/cudf_polars/cudf_polars/experimental/single.py Outdated Show resolved Hide resolved
@rjzamora rjzamora changed the title [DNM][WIP] Single-partition Dask executor for cuDF-Polars Single-partition Dask executor for cuDF-Polars Nov 12, 2024
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.

Some small suggestions, but I think this doesn't need another look from me after.

python/cudf_polars/cudf_polars/dsl/ir.py Outdated Show resolved Hide resolved
Comment on lines +74 to +78
# Return reconstructed node and partition-info dict
partition = PartitionInfo(count=1)
new_node = ir.reconstruct(children)
partition_info[new_node] = partition
return new_node, partition_info
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: No need to address here, but just to note for a followup. This does "unnecessary" reconstruction if the children are unchanged. We could consider making reconstruct return self if the children match.

python/cudf_polars/cudf_polars/experimental/parallel.py Outdated Show resolved Hide resolved
python/cudf_polars/cudf_polars/experimental/parallel.py Outdated Show resolved Hide resolved
python/cudf_polars/cudf_polars/experimental/parallel.py Outdated Show resolved Hide resolved
python/cudf_polars/tests/conftest.py Outdated Show resolved Hide resolved
python/cudf_polars/tests/experimental/test_parallel.py Outdated Show resolved Hide resolved
python/cudf_polars/tests/test_executors.py Outdated Show resolved Hide resolved
python/cudf_polars/cudf_polars/callback.py Outdated Show resolved Hide resolved
python/cudf_polars/cudf_polars/callback.py Outdated Show resolved Hide resolved
@pentschev
Copy link
Member

@rjzamora I've addressed Lawrence's comments on the code I've added, for now I left the others up to you but I can work on those too if you prefer.

@rjzamora
Copy link
Member Author

@rjzamora I've addressed Lawrence's comments on the code I've added, for now I left the others up to you but I can work on those too if you prefer.

Thanks @pentschev! Hopefully I've addressed everything else now.

Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Giving you a ci-codeowners approval, the changes to testing configuration make sense to me.

@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 labels Nov 25, 2024
@rjzamora
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit f05e89d into rapidsai:branch-25.02 Nov 25, 2024
108 checks passed
@rjzamora rjzamora deleted the cudf-polars-dask-simple branch November 25, 2024 19:10
@rjzamora rjzamora restored the cudf-polars-dask-simple branch November 25, 2024 19:10
@rjzamora rjzamora deleted the cudf-polars-dask-simple branch November 25, 2024 19:10
rapids-bot bot pushed a commit that referenced this pull request Dec 3, 2024
Follow-up to #17262

Adds support for parallel `DataFrameScan` operations.

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

Approvers:
  - Lawrence Mitchell (https://github.com/wence-)

URL: #17441
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 cudf.polars Issues specific to cudf.polars improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants