XiaoHongbo-Hope opened a new pull request, #9050:
URL: https://github.com/apache/paimon/pull/9050

   ### Purpose
   
   For an `AND` predicate containing an indexed field and an unindexed residual 
field, global-index evaluation uses the indexed candidate correctly. However, 
coverage was calculated from the complete predicate, so `full` search mode 
treated the indexed range as uncovered and expanded the result to a full scan.
   
   Track the field IDs whose index results actually contribute to predicate 
evaluation and use only those fields for coverage. Apply the fix to Java and 
PyPaimon scalar scans and raw vector pre-filtering. Unsupported `OR` branches 
remain residual filters and do not contribute field IDs.
   
   ### Tests
   
   - `GlobalIndexEvaluatorTest`: 28 passed
   - 
`BtreeGlobalIndexTableTest#testFullSearchIgnoresUnindexedAndResidualForCoverage`:
 passed
   - Relevant PyPaimon global-index and vector tests: 108 passed
   - Python 3.6 `py_compile`, flake8, Spotless, and `git diff --check`: passed
   


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