Repository navigation
Push down current mark ranges to text index analyzer - #108114
Conversation
|
Workflow [PR], commit [131bca3] Summary: ❌
AI ReviewSummaryThis PR pushes primary-key and prior skip-index readable ranges into the text-index analyzer so token and posting analysis can skip impossible rows. The pure token paths are covered, but a dismissed Findings
Tests
Final VerdictStatus: Minimum required action: handle pattern-only |
|
📊 Cloud Performance Report ✅ AI verdict: This PR scopes entirely to the full-text (text) skip-index path: it pushes still-readable row ranges into the TextIndexAnalyzer so 'All'/'Any' token queries can prune posting-list reads and short-circuit the dictionary scan. ClickBench Q4 is COUNT(DISTINCT UserID), which uses no text index and never enters the modified code, so the flagged -16.09% improvement (219ms vs 261ms) cannot be attributed to this change and is treated as run-to-run variance. Downgraded to not-sure; no other queries regressed or improved. clickbenchFlagged queries (1 of 43)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
f04dc9c to
8e9083e
Compare
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 134/143 (93.71%) | Lost baseline coverage (was covered on master, now uncovered in this PR): 1 line(s) · Uncovered code |
ffc0fe9
Resolve cherry-pick conflicts for #109886 (Optimize text index analysis). The release branch does not contain #108114 (`num_live_tokens` / better discarding of `Any` text queries), so the conflicts are resolved by keeping 26.6's logic and applying only #109886's changes: the field->getter refactor of `TextSearchQuery`, the precomputed hash, and the result-column memory reservation in `MergeTreeReaderTextIndex`. The `02346_text_index_bug90778` reference is updated for the fixed virtual column name hash (the old name was a double-finalized `SipHash` accident); the `equals` query uses `direct_read_mode = Exact` on 26.6, giving the hash `55ee63b12fbf5cb6a7510c6b2df99282`. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…-ranges Push down current mark ranges to text index analyzer
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Improved performance of text-search queries combined with a primary key filter.
Version info
26.7.1.76