Mryange opened a new pull request, #70792:
URL: https://github.com/apache/doris/pull/70792

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: #70631, #70591
   
   Problem Summary:
   
   Backport two ANN-related storage fixes to branch-4.2.
   
   - Prune a non-negated equality predicate when both segment zone-map bounds 
equal its value and the segment has no NULLs. A constant delete-sign filter can 
otherwise force MOW ANN TopN queries to fall back to brute force. Carry the 
predicate unit tests. The snapshot wrapper and table-stream regression from 
#70631 are absent from branch-4.2.
   - Release ANN build resources and seal rebuilt index files after each 
segment in regular and SNII historical index builds. This limits accumulation 
across segments, including those that only carry inherited indexes. The 
backport preserves the 4.2 reader interfaces, close-error propagation, and the 
rowset publication boundary.
   
   ### Release note
   
   Avoid unnecessary brute-force fallback for MOW ANN queries with segment-wide 
constant equality predicates and reduce peak memory during historical ANN index 
builds.
   
   ### Testing
   
   - ASAN BE clean build and packaging passed (`sh build.sh --be --clean -j48`).
   - clang-format 16 and `git diff --check` passed.
   - Focused `BlockColumnPredicateTest.*` is running. Cluster regression tests 
were not run.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes. See Problem Summary.
   - Documentation needed: No.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   
   ### AI Disclosure
   
   - Tool: Codex
   - Generated: Branch-specific conflict resolution and PR description.
   - Human review: Pending.
   


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