airborne12 opened a new pull request, #66869:
URL: https://github.com/apache/doris/pull/66869
### What problem does this PR solve?
Issue Number: None
Related PR: #66052
Problem Summary: SEARCH selected the correct SNII reader but passed no
analyzer context to native queries. A cold CommonGrams query therefore bypassed
while a warm raw-query cache entry could be returned before the immutable
segment analyzer contract was validated. This PR builds the analyzer context
from the selected reader properties, passes it to analyzed native queries, and
defers analyzed raw-cache lookup until segment admission. Analyzer-independent
wildcard and regexp queries keep their early cache path.
### Release note
Fix SNII SEARCH queries on CommonGrams indexes so cold and cached queries
validate the same analyzer contract.
### Check List (For Author)
- Test: Unit Test
- Added selected-analyzer propagation and cold/warm CommonGrams
cache-admission tests
- Ran 135 related ASAN BE unit tests
- Ran the full ASAN BE build
- Behavior changed: Yes, analyzed SEARCH cache entries are admitted only
after the SNII segment analyzer contract is validated; this is query-only and
does not change the storage format
- Does this need documentation: No
--
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]