2010YOUY01 commented on code in PR #15744:
URL: https://github.com/apache/datafusion/pull/15744#discussion_r2049940832


##########
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:
   It would be great to add a comment to explain why `&& 
original_sort_fetch.is_none()`



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

Reply via email to