alamb commented on code in PR #4885:
URL: https://github.com/apache/arrow-datafusion/pull/4885#discussion_r1068140522


##########
datafusion/core/src/physical_optimizer/repartition.rs:
##########
@@ -163,10 +166,14 @@ fn optimize_partitions(
             .children()
             .iter()
             .map(|child| {
+                let can_reorder_child = (can_reorder
+                    && plan.required_input_ordering().is_empty())

Review Comment:
   The change is to add `&& plan.required_input_ordering().is_empty())` to the 
check if the child can be reordered
   
   



-- 
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]

Reply via email to