Repository navigation
Revert "Revert "Test the ESCAPE route into the ngram LIKE-pattern tokenizer"" - #121136
Merged
alexey-milovidov merged 2 commits intoSep 20, 2026
Conversation
Contributor
|
Workflow [PR], commit [86cdfb1] Summary: ✅ AI ReviewSummaryThis PR re-lands the Final Verdict
|
The two granule-count assertions in `05147_ngrambf_like_escaped_backslash_run` read `trimLeft(explain)` over `EXPLAIN indexes = 1` filtered by `explain LIKE '%Granules: %/%'`. `EXPLAIN` renders the query plan as a tree by default (`explain_query_plan_default = 'pretty'`), and the detail lines of a step that is not a last child carry the box-drawing prefix `│ ` rather than spaces, which `trimLeft` does not remove. Under parallel replicas the read step gains a sibling, so the assertion printed `│ Granules: 1/3` instead of `Granules: 1/3` and the test failed on master in `Stateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel)`. The granule counts themselves were the expected ones - only the rendering differed. Use `extract(explain, 'Granules: [0-9]+/[0-9]+')`, which is what the other granule-count assertions in the suite already do and which no plan shape can disturb. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=d3977b57a22125c066894165def6c8ad1ea474d4&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This was referenced Sep 20, 2026
alexey-milovidov
deleted the
revert-121135-revert-118279-groeneai/ngrams-tokenizer-escape-pair-restart
branch
September 20, 2026 18:07
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.
Reverts #121135, i.e. re-lands #118279, with the assertion
that broke master fixed.
#118279 added two granule-count assertions of the form
SELECT trimLeft(explain) FROM (EXPLAIN indexes = 1 ...) WHERE explain LIKE '%Granules: %/%'.EXPLAINrenders the query plan as a tree by default(
explain_query_plan_default = 'pretty'), and the detail lines of a step that is not a lastchild carry the box-drawing prefix
│rather than spaces, whichtrimLeftdoes not remove.Under parallel replicas the read step gains a sibling, so the assertion printed
│ Granules: 1/3instead ofGranules: 1/3and05147_ngrambf_like_escaped_backslash_runfailed on master inStateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel). The granulecounts themselves were the expected ones - only the rendering differed, so nothing about the
ngrambf_v1/textindex behaviour the test pins was wrong.The assertions now use
extract(explain, 'Granules: [0-9]+/[0-9]+'), which is what the othergranule-count assertions in the suite already do and which no plan shape can disturb.
CI report for the master failure:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=d3977b57a22125c066894165def6c8ad1ea474d4&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29
Related: #118279
Related: #121135
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/121136]
Version info
26.10.1.291-master(included in26.10and later)