alamb commented on code in PR #10508: URL: https://github.com/apache/datafusion/pull/10508#discussion_r1604207154
########## datafusion/optimizer/src/push_down_limit.rs: ########## @@ -183,6 +169,65 @@ impl OptimizerRule for PushDownLimit { } } +/// Wrap the input plan with a limit node +/// +/// Original: +/// ```text +/// input +/// ``` +/// +/// Return +/// ```text +/// Limit: skip=skip, fetch=fetch +/// input +/// ``` +fn make_limit(skip: usize, fetch: usize, input: LogicalPlan) -> LogicalPlan { Review Comment: Good call, done in 325938016 -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org