mingmwang commented on code in PR #4122:
URL: https://github.com/apache/arrow-datafusion/pull/4122#discussion_r1017956261
##########
datafusion/core/src/execution/context.rs:
##########
@@ -1548,6 +1551,7 @@ impl SessionState {
Arc::new(AggregateStatistics::new()),
Arc::new(HashBuildProbeOrder::new()),
];
+ physical_optimizers.push(Arc::new(BasicEnforcement::new()));
Review Comment:
Yes, this is to cover the case that Repartition rule could add additional
RepartitionExec with RoundRobin partitioning,
and to make sure the SinglePartition is satisfied, we run the
BasicEnforcement again. Originally it was the
AddCoalescePartitionsExec here, now I replace AddCoalescePartitionsExec with
BasicEnforcement.
--
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]