Repository navigation
Revert "Fix text_index optimization on multiple passes." - #102108
Conversation
|
Workflow [PR], commit [3becb55] Summary: ⏳
AI ReviewSummaryThis PR reverts the fix from Missing context
Findings
Tests
ClickHouse Rules
Final Verdict
|
| @@ -287,17 +287,6 @@ class TextIndexDAGReplacer | |||
|
|
|||
| /// Cache for added input nodes for each virtual column. | |||
There was a problem hiding this comment.
❌ This removes the regression guard for #101913 and likely reintroduces the same multi-pass DAG failure mode (LOGICAL_ERROR on duplicate virtual-column handling).
If this revert is unavoidable, please replace it with a minimal safe fix that preserves the invariant: existing text-index virtual inputs must be detected before adding new ones in later optimization passes. At minimum, keep a regression test that reproduces the multi-pass case and verifies no exception is thrown.
| @@ -1,36 +0,0 @@ | |||
| -- Regression test for https://github.com/ClickHouse/ClickHouse/issues/101913 | |||
| -- Full-text index direct-read threw LOGICAL_ERROR when multiple filter conditions | |||
There was a problem hiding this comment.
❌ This deletes an existing regression test. Per ClickHouse review policy, tests should not be removed to land behavior changes, especially when reverting a bugfix.
Please keep coverage for #101913 (or replace with an equivalent updated test) so we do not lose protection against future regressions in text-index direct-read optimization.
|
We don't need to revert the PR. The issue is actually when the randomized I suggest to set it to 1 in the test for now and solve the other case in an independent PR. |
|
@Ergus Okay, then let's fix push an actual fix asap. A problem with CI is a bleeding wound (not my words) which needs to be resolved urgently. |
Pull request was closed
|
Let's revert and fix the other correctly (with more tests) all together |
|
@Ergus While at it, please also remove the reference to Distributed tables (they are difficult to setup) from the test. The problem repro-s also w/o distributed table: https://fiddle.clickhouse.com/8013b753-ba58-4955-99d8-8f01f8ef6509 |
I already got it. And with your simpler test the flakiness will disappear. What we exposed with the new test is a different issue. Root cause: So when So, no matches at all and that's what we are getting. |
LLVM Coverage Report
Changed lines: 100.00% (2/2) | lost baseline coverage: 118 line(s) · Uncovered code |
Reverts #101939
CC: @Ergus
Reason: #101939 (comment)
Version info
26.4.1.687