xudong963 commented on code in PR #14207:
URL: https://github.com/apache/datafusion/pull/14207#discussion_r1967465982
##########
datafusion/physical-optimizer/src/enforce_distribution.rs:
##########
@@ -1361,22 +1390,67 @@ pub fn ensure_distribution(
} else {
plan.with_new_children(children_plans)?
};
+ let mut optimized_distribution_ctx =
+ DistributionContext::new(Arc::clone(&plan), data.clone(), children);
+
+ // If `fetch` was not consumed, it means that there was
`SortPreservingMergeExec` with fetch before
Review Comment:
also cc @alamb here, I think @berkaysynnada 's comment makes a lot of sense,
but I don't have a good way to solve it currently, any suggestions/ideas will
be appreciated ❤️
--
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]