luoyuxia commented on code in PR #177:
URL: https://github.com/apache/paimon-rust/pull/177#discussion_r3026846765


##########
crates/integrations/datafusion/src/physical_plan/scan.rs:
##########
@@ -133,9 +144,30 @@ impl ExecutionPlan for PaimonTableScan {
         };
 
         let stream = futures::stream::once(fut).try_flatten();
+
+        // Apply limit if specified
+        let limited_stream: Pin<Box<dyn Stream<Item = DFResult<RecordBatch>> + 
Send>> =

Review Comment:
   Yes, DataFusion already does this on its own — it just stops early at the 
scan source in current pr. My original plan was to leave the limit pushdown to 
Paimon core for a follow-up PR, but we can also implement it directly in this 
PR if you prefer.
   



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

Reply via email to