Repository navigation
Add test: ilike dictionary-scan optimization bail-out when a text index has a postprocessor is untested - #108940
Conversation
|
Pre-PR Validation Gate (per ClickGap pipeline): a) Deterministic repro? ✅ b) Root cause explained? ✅ c) Fix matches root cause? ✅ d) Test intent preserved? / New tests added? ✅ e) Both directions demonstrated? ✅ f) Fix is general, not a narrow patch? ✅ |
|
@clickgapai There are 4 tests related with postprocessors with the prefix 02346_text_index_postprocessor. The new test must be inserted in one of those files depending of the test type. Check those and move the new test there please |
…essor_predicates Per review, fold the standalone 04490 ILIKE test into the existing postprocessor predicates suite as section 12; remove the standalone file.
|
Workflow [PR], commit [c75d6a4] Summary: ✅ AI ReviewSummaryThis PR folds an Final Verdict✅ No findings. |
|
CI failure in |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 110 line(s), 3 function(s) across 37 file(s) · Details Top files
|
|
@clickgapai We appreciate your work but your GitHub comments are also way too verbose. Please try to say the same information with 50% of the vertical and horizontal space. CC: @zlareb1 |
|
The failing tests is flaky and bothering all day in master |
|
Thanks for the heads-up — understood that the red Stress test (arm/amd |
|
@clickgapai merge the changes from master to trigger CI again and see how it goes |
|
Looking into this/master into the branch and pushed — CI is re-triggering. The previously red jobs were the master-wide flaky |
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
This is a test-only PR — no source code changes. Please review: test quality, whether the claimed coverage gaps are real, and whether test output makes sense.
Adds test coverage for 1 untested code path(s), found during automated review of PR #108606.
That PR This PR adds a
postprocessorargument to the text index (MergeTreetextindex): an arbitrary, deterministic expression applied to each token after tokenization. Touches token build (MergeTreeIndexTextPostprocessor), needle normalization for every index-aware predicate in `MergeTreeIndexCondi1.
ilikedictionary-scan optimization bail-out when a text index has apostprocessoris untestedsrc/Storages/MergeTree/MergeTreeIndexConditionText.cpp:1161Risk:
MergeTreeIndexConditionText.cpp:1155 enters theilikedictionary-scan block forsplitByNonAlpha/arraytokenizers when the setting is on; line 1160-1161if (has_postprocessor) return false;disables the optimization. RISK if broken: without the bail-out the optimization would match theILIKEpattern against the postprocessed dictionary tokens (e.g. pattern%running%vs storedrunn), silently pruning matching rows and returning WRONG results — exactly the failure the sibling …What's unique vs PR tests: The PR's predicate tests (02346_text_index_postprocessor_predicates.sql) cover has/hasAll/hasAny, hasAllTokens/hasAnyTokens, startsWith/endsWith/hasPhrase, IN, equals and mapContains* with a postprocessor, but contain no ILIKE. The existing ilike test (02346_text_index_function_ilike.sql) covers the dictionary-scan optimization with a preprocessor (including the wrong-result guard for non-case-folding preprocessors) but never with a postprocessor. This test is the only one exercising the …
Try it on ClickHouse Fiddle
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes
Version info
26.8.1.614(included in26.8and later)