Repository navigation
Use text and token skip indexes for IN with transform_null_in = 1 (Human alternative for #112785) - #121375
Conversation
|
Workflow [PR], commit [91f129d] Summary: ✅
AI ReviewSummaryThis PR extends Final Verdict
LLVM Coverage ReportMeasured on commit 91f129d.
Changed lines: Changed C/C++ lines covered: 65/67 (97.01%) · Uncovered code |
| @@ -0,0 +1,71 @@ | |||
| -- Tests that the `text`, `tokenbf_v1`, `ngrambf_v1` and `sparse_grams` skip indexes prune an `IN` | |||
There was a problem hiding this comment.
Let's make the test cases (including the comments) as much similar between the different index types as possible.
…ault only for FixedString
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units8 translation units recompiled, 23 s compile time in total, 8 of them have a recent master baseline. |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… transform_null_in = 1 (Human alternative for #112785)
… transform_null_in = 1 (Human alternative for #112785)
… transform_null_in = 1 (Human alternative for #112785)
Related: #111311
Related: #111329
Closes: #112785
Smaller alternative to #112785: that PR also adds a set-element comparability guard, which belongs to a separate, pre-existing defect: a text index on a
FixedStringcolumn loses rows fors = 'word1'as well, so anIN-only guard does not fix it.With
transform_null_in = 1the analyzer renamesin/globalIntonullIn/globalNullIn, and neitherMergeTreeIndexConditionTextnorMergeTreeConditionBloomFilterTextassigned an RPN function for those names, so the index was dropped. With a NULL-free setnullInselects the same rows asin, so both now accept the renamed spellings and refuse per row when an element is NULL. ANullablekey keeps the wrapper on its set elements at that setting, so the element type is read through it.This also admits
globalIn/globalNotInon the token bloom filter family, which never reached the index even attransform_null_in = 0.Follow-up to #111329, which fixed
bloom_filteronly.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The
text,tokenbf_v1,ngrambf_v1andsparse_gramsskip indexes are now used forINwhentransform_null_in = 1and the set contains no NULL. Previously such a query read every granule, and one usingforce_data_skipping_indicesfailed withINDEX_NOT_USED.Workflow [PR]
Sync PR [sync-upstream/pr/121375]
Version info
26.10.1.636-master(included in26.10and later)26.9.2.38,26.8.12.51,26.7.15.51