alamb commented on code in PR #12399:
URL: https://github.com/apache/datafusion/pull/12399#discussion_r1754686284


##########
datafusion/physical-optimizer/src/limit_pushdown.rs:
##########
@@ -199,10 +203,15 @@ pub fn pushdown_limit_helper(
             // This plan is combining input partitions, so we need to add the
             // fetch info to plan if possible. If not, we must add a 
`LimitExec`
             // with the information from the global state.
+            let mut new_plan = plan_with_fetch;
+            if global_state.skip > 0 {

Review Comment:
   Added in cb7ded270



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

Reply via email to