jackylee-ch opened a new pull request, #946:
URL: https://github.com/apache/paimon-rust/pull/946

   Go and C callers can't pass a row-count limit to scan planning, so a service 
that only wants to preview or sample the first N rows of a large table still 
plans every split and reads every data file's statistics.
   
   The core `ReadBuilder` already stops selecting splits once the retained ones 
cover the limit (`TableScan::apply_limit_pushdown`), but that plan-time I/O 
saving was unreachable from Go/C.
   
   This adds the `paimon_read_builder_with_limit` C FFI symbol and a Go 
`ReadBuilder.WithLimit` wrapper, threading the hint into both scan planning and 
`new_read`. It is a planning hint only — the caller still enforces the final 
row limit when reading.
   
   Tests: a C-binding test asserts a zero limit prunes to no splits; a Go 
integration test checks split counts with and without a limit.
   


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