adriangb commented on code in PR #27925:
URL: https://github.com/apache/datafusion/pull/27925#discussion_r4763935892
##########
datafusion/physical-optimizer/src/projection_pushdown.rs:
##########
@@ -74,13 +83,10 @@ impl PhysicalOptimizerRule for ProjectionPushdown {
// narrows and holds a computed one. `RepartitionExec` declines both,
it
// is not removable because it renames, and nothing else moved.
let plan = plan.transform_down(remove_unnecessary_projections).data()?;
- plan.transform_down(|plan| {
- Ok(match try_split_leaf_projection(&plan)? {
- Some(new_plan) => Transformed::yes(new_plan),
- None => Transformed::no(plan),
- })
- })
- .data()
+ // `OutputRequirementExec` declares the ordering that the query needs.
Without
+ // one at the root, the caller may rely on any ordering of the output.
+ let order_matters = !plan.is::<OutputRequirementExec>();
Review Comment:
Agreed, removed in 03a3bdd1c and 8ddb27dde
--
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]