-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Move EnforceDistribution
into datafusion-physical-optimizer
crate
#14190
Conversation
Fix circular dependency
EnforceDistribution
into datafusion-physical-optimizer
crate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @logan-keede
use datafusion_physical_plan::repartition::RepartitionExec; | ||
use datafusion_physical_plan::sorts::sort::SortExec; | ||
use datafusion_physical_plan::sorts::sort_preserving_merge::SortPreservingMergeExec; | ||
// use datafusion_physical_plan::union::UnionExec; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps we can clean these up too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept it because I thought it would need to be moved here sooner or later, but sure it can be cleaned.
PS: you are talking about comments, right?
Hi @logan-keede. Thank you for working on this exhaustive issue. The I’d like to push this PR (and eventually all rules) to the finish line as soon as possible. Are you facing any challenges that are slowing progress? Or would you mind if I push some commits to help move things forward? |
@berkaysynnada This PR is pretty much in its last stretch, I was facing some problems with tests, but I think I have got it now, additionally @buraksenn should be pushing some commits to fix EnforceSorting tests soon. I do not mind if you still want to help. I would certainly ask you if I get stuck again. Thanks, |
…m/buraksenn/datafusion into moves_crates_test
To move tests to |
cc @alamb @xudong963 |
datafusion-testing
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
datafusion-testing is using the commit: 36283d195c728f26b16b517ba999fd62509b6649 (https://github.com/apache/datafusion-testing/commits/36283d195c728f26b16b517ba999fd62509b6649/)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dup with: https://github.com/apache/datafusion/pull/14219/files and #14219 is ready to merge. Maybe you can do a rebase after it merges.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dup with: https://github.com/apache/datafusion/pull/14219/files and #14219 is ready to merge. Maybe you can do a rebase after it merges.
I'll get these PR's, and resolve any conflicts.
@logan-keede I've resolved the conflicts and made some further simplifications to remove duplicated utilities. If you're okay with it, I'll send a few commits directly to your branch and then merge this PR. Thanks for the collaboration! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is ready. I’ve spent quite some time on this, and with the completion of #14235, we'll have completed the entire migration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much @berkaysynnada for pushing this along and @logan-keede for starting the process. Let's merge this PR in asap to avoid accumulating conflicts
@@ -0,0 +1,861 @@ | |||
// Licensed to the Apache Software Foundation (ASF) under one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how you have split out the tests here
@@ -41,6 +41,7 @@ datafusion-common = { workspace = true, default-features = true } | |||
datafusion-execution = { workspace = true } | |||
datafusion-expr = { workspace = true } | |||
datafusion-expr-common = { workspace = true, default-features = true } | |||
datafusion-functions-aggregate = { workspace = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to avoid this dependency if possible -- I will like to make a follow on PR to remove it -- similar to how I did in #14134
However when I just used the stub a few tests started failing on me
Here is a PR that proposes to consolidate the tests: |
Which issue does this PR close?
Closes #14186 #14185 #14184.
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?