Repository navigation
Fix not ready set in text index analysis - #100224
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [107ba51] Summary: ✅ AI ReviewSummaryThis PR fixes a real analyzer-time exception in text index analysis for Missing context
ClickHouse Rules
Final Verdict
|
Contributor
LLVM Coverage Report
PR changed lines: PR changed-lines coverage: 88.89% (16/18, 0 noise lines excluded) |
robot-clickhouse
added a commit
that referenced
this pull request
Mar 21, 2026
clickhouse-gh Bot
added a commit
that referenced
this pull request
Mar 21, 2026
Backport #100224 to 26.2: Fix not ready set in text index analysis
fm4v
added a commit
that referenced
this pull request
Mar 21, 2026
…tion When a PR changes a C++ source file, tests that cover sibling files (same directory, same functional domain) are now included as additional candidates, ranked below direct hits (SIBLING_DIR_WIDTH=10000). Problem solved: for PR #100150 (Arrow writer UUID fix), the 16 directly selected tests all covered CHColumnToArrowColumn.cpp (the writer), but 32 additional tests cover ArrowColumnToCHColumn.cpp (the reader) which lives in the same directory and is functionally related. These tests were missed because they don't call the writer directly. Algorithm (new _query_sibling_dir_tests method): 1. Extract domain keywords from changed C++ source filenames using CamelCase word splitting, filtering out architectural/common words. E.g. CHColumnToArrowColumn.cpp → ["Arrow"] MergeTreeIndexConditionText.cpp → ["Index", "Text"] 2. With one keyword: LIKE '%Arrow%' (OR logic). With multiple: LIKE '%Index%' AND LIKE '%Text%' (AND logic avoids false matches on broad words like "Index" alone). 3. Inner query: find sibling files (same dir, keyword-filtered) that the PRIMARY tests already cover — these are files with a natural code relationship to the changed file. 4. Outer query: find tests covering those same sibling files that were NOT in the primary set — these tests exercise the same domain from a different entry point. Results: PR #100150 (Arrow writer): 16 → 48 tests (+32 Arrow reader tests) PR #100224 (text index): 71 → 112 tests (+41 text/bloom index tests) No false positives added for unrelated PRs. Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed "Not-ready Set is passed as the second argument" errors during analysis of text index built on top of
mapValuesfor predicates that containINclause.In addition to #99286.
Version info
26.2.6.8