Repository navigation
Conversation
Tests that `query_plan_direct_read_from_text_index` works correctly when the text-index predicate is referenced via an alias in `SELECT` and used in `PREWHERE`. PR ClickHouse#99504 fixed `NOT_FOUND_COLUMN_IN_BLOCK` for this pattern. Covers: `hasToken`, `hasAllTokens`, `hasAnyTokens` with `PREWHERE` alias, `PREWHERE + WHERE` combined, explicit `PREWHERE` predicate with alias in `SELECT`, and `NOT` predicate with `PREWHERE` alias. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Contributor
|
Workflow [PR], commit [6945364] Summary: ✅ AI ReviewSummaryThis PR adds a new stateless regression test pair ( ClickHouse Rules
Final Verdict
|
Text index is available in fasttest. Existing `02346_text_index_*` tests carry no `no-fasttest` tag. The tag was added by mistake. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
query_plan_direct_read_from_text_index is incompatible with parallel replicas (same reason as 02346_text_index_direct_read.sql). Also guard the final DROP with IF EXISTS so re-runs after mid-test failure are clean. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
zlareb1
marked this pull request as ready for review
March 19, 2026 11:04
04039_text_index_direct_read_select_alias.sql uses the same settings (query_plan_direct_read_from_text_index, use_skip_indexes_on_data_read) without the tag. The no-parallel-replicas concern in 02346 applies to tests that assert read_rows metrics, not row output. This test only checks result rows, so parallel replicas should not affect correctness. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
CurtizJ
approved these changes
Mar 19, 2026
zlareb1
enabled auto-merge
March 19, 2026 12:39
This was referenced Jun 15, 2026
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.
Add a stateless test covering the fix from PR #99504, which resolved a
NOT_FOUND_COLUMN_IN_BLOCKexception whenquery_plan_direct_read_from_text_indexis enabled and a text-index predicate is used inPREWHEREvia an alias defined inSELECT.Created with Claude.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not for changelog.
Documentation entry for user-facing changes
Version info
26.3.1.876