xudong963 commented on code in PR #15744: URL: https://github.com/apache/datafusion/pull/15744#discussion_r2051509268
########## datafusion/optimizer/src/push_down_limit.rs: ########## @@ -137,6 +142,9 @@ impl OptimizerRule for PushDownLimit { } } else { sort.fetch = new_fetch; + if skip == 0 && original_sort_fetch.is_none() { Review Comment: Your comment has triggered my deeper thinking, now I think we don't need the condition check -- 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