comphead commented on code in PR #2070:
URL: https://github.com/apache/datafusion-comet/pull/2070#discussion_r2265419012


##########
native/core/src/execution/planner.rs:
##########
@@ -1160,6 +1179,11 @@ impl PhysicalPlanner {
                         .with_fetch(fetch),
                 );
 
+                let sort: Arc<dyn ExecutionPlan> = match skip {
+                    Some(x) if x > 0 => Arc::new(GlobalLimitExec::new(sort, x, 
None)),
+                    _ => sort,
+                };
+

Review Comment:
   ```suggestion
   if let Some(x) = sort.skip.filter(|&n| n > 0).map(|n| n as usize) {
       sort = Arc::new(GlobalLimitExec::new(sort, x, 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