xiangfu0 opened a new pull request, #19297:
URL: https://github.com/apache/pinot/pull/19297

   Part 1/5 of the split of #19287 (Fix FULL-upsert vector candidate 
generation).
   
   ## Summary
   
   Groundwork for applying the FULL-upsert valid-document snapshot before 
vector candidate
   selection (done in part 4/5):
   
   - Extract a shared `computeExactMatches` helper in 
`ExactVectorScanFilterOperator` that
     unifies the exact top-K and threshold scan paths and can restrict scoring 
to an
     allowed-document bitmap. When a bitmap is supplied, only allowed document 
IDs are read
     from the forward index, and IDs beyond the `numDocs` watermark are ignored.
   - Introduce `VectorCandidateScope`, an immutable query-scoped candidate 
constraint that
     owns a single defensive copy of the supplied bitmap. 
`ExactVectorScanFilterOperator`
     accepts it via a new constructor overload; no production caller passes one 
yet, so
     behavior is unchanged.
   - Report candidate-filter cardinality in the operator's explain output.
   - Add filtered-reader coverage for `HnswVectorIndexReader.getDocIds(query, 
k, allowed)`.
   
   ## Validation
   
   All commands ran with JDK 25.
   
   - `ExactVectorScanFilterOperatorTest`: 16 tests passed (6 new 
allowed-document tests).
   - `HnswVectorIndexCreatorTest`: 6 tests passed (1 new filtered-reader test).
   - Spotless, Checkstyle, and license checks 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to