viirya commented on code in PR #8794:
URL: https://github.com/apache/arrow-datafusion/pull/8794#discussion_r1447936606
##########
datafusion/core/src/physical_optimizer/enforce_distribution.rs:
##########
@@ -1208,6 +1201,12 @@ fn ensure_distribution(
true
};
+ let add_roundrobin = enable_round_robin
+ // Operator benefits from partitioning (e.g. filter):
+ && (would_benefit && repartition_beneficial_stats)
+ // Unless partitioning doesn't increase the partition count,
it is not beneficial:
Review Comment:
I think you are right. This is original comment and looks incorrect.
--
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]