Repository navigation
Text index: fix accidentally removed columns when the direct read is enabled - #114460
Merged
Merged
Conversation
…enabled When the same column is used in both `PREWHERE` and `WHERE` conditions, it must not be removed, since `PREWHERE` is executed before `WHERE`. Even if a `WHERE` filter column is rewritten into a text index virtual column, it still has to be read to apply the `PREWHERE` condition. To fix it, now every column still required by the `PREWHERE` is kept in the read set instead of removing it. Fixes #113320.
Contributor
|
Workflow [PR], commit [d9ca795] Summary: ✅
AI ReviewSummaryThis PR keeps source columns in the read set when a Final Verdict✅ No new findings. LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 10/12 (83.33%) · Uncovered code |
rschu1ze
approved these changes
Aug 12, 2026
rschu1ze
added a commit
that referenced
this pull request
Oct 15, 2026
Backport #114460 to 26.7: Text index: fix accidentally removed columns when the direct read is enabled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the same column is used in both
PREWHEREandWHEREconditions, it must not be removed, sincePREWHEREis executed beforeWHERE. Even if aWHEREfilter column is rewritten into a text index virtual column, it still has to be read to apply thePREWHEREcondition.To fix it, now every column still required by the
PREWHEREis kept in the read set instead of removing it.Fixes #113320.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Do not remove columns when it's referenced in both
PREWHEREandWHEREfilter conditions even if it's rewritten into a text index virtual column.Version info
26.7.31.14