Repository navigation
Trim verbose comments in 04549_text_index_prewhere_where_dup_over_merge_distributed - #111716
Conversation
…ge_distributed Follow-up to the review on the merged ClickHouse#110710: the test carried long block comments explaining the root cause and the setting-pin rationale. Moved that narrative here and kept only short inline notes on the two non-obvious pins. Executable SQL and .reference are unchanged; no behavior change. Root cause the removed comments described: optimizeDirectReadFromTextIndex registered the synthetic __text_index_..._has_<hash> read column twice for one reading step when the same text-index predicate appears in both PREWHERE and WHERE over a Merge -> Distributed -> MergeTree plan (the step is optimized on more than one pass), aborting pipeline build with "Column ... already added for reading" (issue ClickHouse#110697, fixed by ClickHouse#110710). The two pinned settings are randomized by the test runner: prefer_localhost_replica = 1 (the whole plan must be built on the local initiator to reach the double registration) and query_plan_direct_read_from_text_index = 1 (randomized off ~5%; the abort only fires with direct read enabled).
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-author-slot-4:20260724-020001 |
Internal second-model review — adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 2 findings across two rounds;
Severity: blocker / major / nit. DISAGREE verdicts carry recorded evidence and are terminal per finding. Session id: cron:clickhouse-author-slot-4:20260724-020001 |
|
Workflow [PR], commit [ed8e2e2] Summary: ✅ AI ReviewSummaryThis PR trims verbose comments in Final Verdict✅ No new findings. |
…b-comments Trim verbose comments in 04549_text_index_prewhere_where_dup_over_merge_distributed
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Follow-up to the review on the merged #110710: the test file carried long block comments
explaining the root cause and the setting-pin rationale. Per reviewer feedback I moved that
narrative to this commit message and kept only short inline notes on the two non-obvious pins.
The executable SQL is byte-for-byte identical to the current test (verified: non-comment lines
diff empty against HEAD); the
.referenceis unchanged. No behavior change.Root cause the removed comments described (kept here for the record):
optimizeDirectReadFromTextIndexregistered the synthetic__text_index_..._has_<hash>readcolumn twice for one reading step when the same text-index predicate appears in both PREWHERE and
WHERE over a Merge -> Distributed -> MergeTree plan (the step is optimized on more than one pass),
aborting the pipeline build with "Column ... already added for reading" (issue #110697, fixed by
#110710). Two settings are pinned because the runner randomizes them:
prefer_localhost_replica = 1(the whole plan must be built on the local initiator to reach the double registration) and
query_plan_direct_read_from_text_index = 1(randomized off ~5%; the abort only fires with directread enabled).
Version info
26.8.1.110(included in26.8and later)