You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/08/23 02:56:16 UTC
[GitHub] [arrow-datafusion] andygrove opened a new pull request, #3229: MINOR: Add support for Partitioning::DistributeBy in expressions function
andygrove opened a new pull request, #3229:
URL: https://github.com/apache/arrow-datafusion/pull/3229
# Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
N/A
# Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
-->
Optimizer rules re-write `DistributeBy` partitioning without any expressions without this fix.
# What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
-->
- Handle `Partitioning::DistributeBy`
- TODO: add tests
# Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please add the `api change` label.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] ursabot commented on pull request #3229: Fix bug where optimizer was removing `Partitioning::DistributeBy` expressions
Posted by GitBox <gi...@apache.org>.
ursabot commented on PR #3229:
URL: https://github.com/apache/arrow-datafusion/pull/3229#issuecomment-1224213984
Benchmark runs are scheduled for baseline = 74872a31969c01d976ecc36135082c8b8aeaf953 and contender = e1d4069de9d2aaf85655edd72744f176431c03d3. e1d4069de9d2aaf85655edd72744f176431c03d3 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/a127328f7b3146aca8ea519058847cd5...147f21ea757047f5b1b455fc9559d32b/)
[Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] [test-mac-arm](https://conbench.ursa.dev/compare/runs/bfb4c809f27c415285e2ed3a76a54802...7a92aaff808743708ea91df66067fa7a/)
[Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/2e4e7937ea554727b06046a03addc63c...505a11b64b414f718c05ddfaba649063/)
[Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/127c252419b045bc94aedd480fb616f0...943a1cc71f234902bf57996e8d465525/)
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] andygrove commented on pull request #3229: Add support for Partitioning::DistributeBy in expressions function
Posted by GitBox <gi...@apache.org>.
andygrove commented on PR #3229:
URL: https://github.com/apache/arrow-datafusion/pull/3229#issuecomment-1224118148
@jdye64 This is ready for review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] andygrove commented on a diff in pull request #3229: MINOR: Add support for Partitioning::DistributeBy in expressions function
Posted by GitBox <gi...@apache.org>.
andygrove commented on code in PR #3229:
URL: https://github.com/apache/arrow-datafusion/pull/3229#discussion_r952104644
##########
datafusion/expr/src/logical_plan/plan.rs:
##########
@@ -220,7 +220,8 @@ impl LogicalPlan {
..
}) => match partitioning_scheme {
Partitioning::Hash(expr, _) => expr.clone(),
- _ => vec![],
Review Comment:
This catch-all is partly responsible for the bug creeping in, so I removed it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] codecov-commenter commented on pull request #3229: MINOR: Add support for Partitioning::DistributeBy in expressions function
Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #3229:
URL: https://github.com/apache/arrow-datafusion/pull/3229#issuecomment-1223484563
# [Codecov](https://codecov.io/gh/apache/arrow-datafusion/pull/3229?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#3229](https://codecov.io/gh/apache/arrow-datafusion/pull/3229?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (1988945) into [master](https://codecov.io/gh/apache/arrow-datafusion/commit/c72f547a2cdc68f9d0550250456484802893746c?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (c72f547) will **increase** coverage by `0.00%`.
> The diff coverage is `0.00%`.
```diff
@@ Coverage Diff @@
## master #3229 +/- ##
=======================================
Coverage 85.83% 85.83%
=======================================
Files 291 291
Lines 52947 52948 +1
=======================================
+ Hits 45447 45449 +2
+ Misses 7500 7499 -1
```
| [Impacted Files](https://codecov.io/gh/apache/arrow-datafusion/pull/3229?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [datafusion/expr/src/logical\_plan/plan.rs](https://codecov.io/gh/apache/arrow-datafusion/pull/3229/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZGF0YWZ1c2lvbi9leHByL3NyYy9sb2dpY2FsX3BsYW4vcGxhbi5ycw==) | `78.04% <0.00%> (+0.03%)` | :arrow_up: |
| [datafusion/core/src/physical\_plan/metrics/value.rs](https://codecov.io/gh/apache/arrow-datafusion/pull/3229/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZGF0YWZ1c2lvbi9jb3JlL3NyYy9waHlzaWNhbF9wbGFuL21ldHJpY3MvdmFsdWUucnM=) | `87.43% <0.00%> (+0.50%)` | :arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] jdye64 commented on a diff in pull request #3229: Add support for Partitioning::DistributeBy in expressions function
Posted by GitBox <gi...@apache.org>.
jdye64 commented on code in PR #3229:
URL: https://github.com/apache/arrow-datafusion/pull/3229#discussion_r952682134
##########
datafusion/expr/src/logical_plan/plan.rs:
##########
@@ -220,7 +220,8 @@ impl LogicalPlan {
..
}) => match partitioning_scheme {
Partitioning::Hash(expr, _) => expr.clone(),
- _ => vec![],
Review Comment:
This bites me all the time in my code base. Good find! I ran this PR against the test I was seeing the issue in and it resolved my issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] andygrove merged pull request #3229: Fix bug where optimizer was removing `Partitioning::DistributeBy` expressions
Posted by GitBox <gi...@apache.org>.
andygrove merged PR #3229:
URL: https://github.com/apache/arrow-datafusion/pull/3229
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org