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

   ### Purpose
   
   Broad BTree and Bitmap lookups can spend substantial time decoding row IDs 
and building split selections before a Data Evolution batch scan reaches its 
workers.
   
   - Add the opt-in `data-evolution.scalar-index.adaptive.enabled` option for 
automatic Java batch planning in `full` and `detail` modes. The planner 
supplies built-in index-byte, row-ID, and disjoint-range budgets.
   - Probe candidate ranges before manifest planning. On overflow, prune whole 
file groups and seek to candidates within the retained row-ID domains before 
counting again. When the scoped selection still exceeds the range limit, emit 
ordinary splits on the pinned snapshot and retain the original predicate.
   - Merge each split's file row-ID ranges before intersecting them with the 
selection, so overlapping column files share the same range calculation.
   
   ### Tests
   
   - Passed 191 targeted Maven tests against the current upstream `master`, 
including BTree, Bitmap, manifest pruning, and reader-side index query coverage.
   - A local scoped probe with one billion excluded row IDs and 256 retained 
ranges went from about 4.5 seconds to 0.9–5.1 milliseconds.
   - With 24 overlapping column files and 90,000 retained ranges, exact split 
construction allocated about 3.3 MB per call, down from 159 MB, with identical 
output ranges.
   


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