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

   ### Background
   
   `enable_fallback_on_missing_inverted_index` is a session variable, default 
`true`. When a predicate's inverted index file is missing, for example on a 
segment written before the index was built, the BE falls back to evaluating the 
predicate without the index if the variable is enabled, and fails the query if 
it is disabled (`SegmentIterator::_downgrade_without_index`).
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: None
   PR Type: Bugfix
   
   Problem Summary:
   
   The variable's description says the opposite of what it does: "After 
enabling, it will directly query and report an error if no index is found." 
Users who read `SHOW VARIABLES` or the generated docs may disable it, expecting 
a fallback, and get query errors instead. This PR rewrites the description to 
match the behavior. Only the description string changes.
   
   ### Details
   
   - **Frequency:** Every reader of the variable description.
   - **Root cause:** The description string was wrong. The FE default (`true`), 
the thrift default (`PaloInternalService.thrift`, field 120) and the BE check 
all agree that `true` means falling back.
   - **Why existing tests missed it:** No test checks variable descriptions.
   - **Fix:** Rewrite the description to say that enabling the variable 
evaluates the predicate without the index and disabling it makes the query 
report an error.
   - **Other paths and branches:** None. No other code or test references the 
old text.
   
   ### Testing
   
   - No functional change. Checked that the new lines stay within the 
120-character checkstyle limit.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Behavior changed: No
   - Does this need documentation: No (if apache/doris-website copies this 
description, it should be updated to match)
   - Pre-submission status: Ready
   
   ### AI Disclosure
   
   - Tool: Claude Code (Claude Opus 5.5)
   - Generated: The description change and this PR description
   - Human review: The author asked for the fix after reviewing how the 
variable is used in the BE
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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