jayzhan211 commented on code in PR #24958:
URL: https://github.com/apache/datafusion/pull/24958#discussion_r3950928298
##########
datafusion/physical-optimizer/src/ensure_requirements/enforce_sorting/sort_pushdown.rs:
##########
@@ -364,7 +386,7 @@ fn pushdown_sorts_helper(
// For operators that can take a sort pushdown, continue with updated
// requirements. If this node already outputs single partition (e.g.
SPM),
// don't push SinglePartition to children.
- let current_fetch = sort_push_down.plan.fetch();
+ let current_fetch = input_fetch(&sort_push_down.plan);
Review Comment:
This make sense!
--
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]