gene-bordegaray commented on code in PR #18521:
URL: https://github.com/apache/datafusion/pull/18521#discussion_r2506956522
##########
datafusion/physical-optimizer/src/enforce_distribution.rs:
##########
@@ -1273,7 +1273,7 @@ pub fn ensure_distribution(
child = add_merge_on_top(child);
}
Distribution::HashPartitioned(exprs) => {
- if add_roundrobin {
+ if add_roundrobin && !hash_necessary {
Review Comment:
if we link these I would like to finish the docs to be complete. If you
notice I cut off at the end of the explanation of the enforce_distribution
because this was thorough enough for this bug
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]