lilei1128 opened a new pull request, #11403:
URL: https://github.com/apache/paimon/pull/11403

   ### Purpose
     For page-filtered reads, surviving rows already exist in `RowRanges` as a 
few
     merged continuous ranges. But `ParquetReadState.constructRanges()` 
consumed the
     row-index iterator one row at a time, once per projected column, 
rebuilding that
     same range list at `O(columns * rows)`. Extract the iterator in
     `RowRanges.iterator()` into a named `RowIndexIterator` exposing 
`nextRange()`,
     and have `constructRanges()` copy range boundaries directly when it sees 
this
     type, reducing per-column init from `O(N)` to `O(G)` (ranges). Result 
ranges are
     identical, the decoding path is untouched, the no-filter path is 
preserved, and
     any other iterator falls back to the original logic. Unfiltered scans are 
not
     affected.
   
   ### Tests
     1. RowRangesTest.java — tests the new low-level RowIndexIterator / 
nextRange().
     2. ParquetReadStateTest.java — tests the upper-layer constructRanges.
   


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