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

   ## Summary
   
   Fix primary-key batch scan planning so incompatible global-index results 
fail fast, split-backed results are not processed again, and sorted indexes are 
evaluated only for applicable predicates.
   
   The previous implementation silently ignored unsupported `GlobalIndexResult` 
implementations and passed the full scan filter into sorted-index evaluation, 
causing redundant planning and unnecessary index-manifest reads.
   
   ## Changes
   
   - Validate that non-null global-index results supplied to 
`PrimaryKeyBatchScan` implement `GlobalIndexSplitResult`.
   - Skip post-processing when a split-backed global-index result is already 
present.
   - Resolve BTree and Bitmap primary-key index definitions once when 
constructing the scan.
   - Inclusively project scan filters onto indexed fields and skip sorted-index 
planning when no applicable predicate remains.
   - Add regression coverage for incompatible results, post-processing 
short-circuiting, and unindexed filters.
   
   ## Testing
   
   - [x] `mvn -pl paimon-core -DwildcardSuites=none 
-Dtest=PrimaryKeySortedIndexBatchScanTest,PrimaryKeyVectorSearchTest,TableScanTest
 test`
   - [x] Checkstyle, Spotless, Maven Enforcer, and `git diff --check`
   
   ## Notes
   
   No public API or configuration changes.
   


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