Repository navigation
Add test: UInt32 LowCardinality index-width branch of getDistinctIndexes (bloom filter over >65536-distinct LC column) untested - #107303
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? ✅ |
|
Workflow [PR], commit [0874517] Summary: ✅ AI ReviewSummaryThis test-only PR moves the wide-dictionary Final Verdict✅ No findings in the current revision. I did not post any new inline review comments. |
Requested by @clickhouse-gh[bot] in ClickHouse#107303 (comment)
Requested by @clickhouse-gh[bot] in #107303 (comment)
|
ClickGap AI Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
I will do some small experiment with LLVM coverage. I want to prove one method of stabilizing the numbers. I will remove all unrelated changes later today |
6e92881 to
d0ce9a2
Compare
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 746 line(s), 57 function(s) across 156 file(s) · Details Top files
|
|
Dear @alexbakharew, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
|
@clickgapai move this test to existing file: tests/queries/0_stateless/04100_bloom_filter_low_cardinality.sql |
|
This finding's branch may be deleted or its PR closed, so I can't act on it directly. If you'd like the same change applied to a new PR, open it (or ask me to file a separate PR via a fresh comment on the original PR). |
1ae27a6
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 #106410.
PR speeds up
bloom_filterskip-index building forLowCardinalitycolumns. It addsColumnLowCardinality::getDistinctIndexes(offset, limit)(a switch over the LC index integer width UInt8/UInt16/UInt32/UInt64),BloomFilterHash::hashWithColumnDistinct/hashLowCardinalityColumnDistinct/ `fin1. UInt32 LowCardinality index-width branch of
getDistinctIndexes(bloom filter over >65536-distinct LC column) untestedsrc/Columns/ColumnLowCardinality.cpp:653Risk:
MergeTreeIndexAggregatorBloomFilter::update->BloomFilterHash::hashWithColumnDistinct->hashLowCardinalityColumnDistinct->ColumnLowCardinality::getDistinctIndexesswitches onidx.getSizeOfIndexType(); the PR's own tests only ever reach the UInt8/UInt16 cases (<=1000 distinct). If the UInt32 branch were broken (wrongassert_cast, missing case), the granule's distinct dictionary positions would be read incorrectly, so the bloom filter would miss a value present in the granule and …What's unique vs PR tests: The PR's 04100 test only inserts up to 1000 distinct LC values (UInt8/UInt16 index widths); this test forces a single block with 100000 distinct values so the LC index positions are UInt32, exercising the
case sizeof(UInt32)branch of getDistinctIndexes that 04100 never reaches.Tags:
-- Tags: no-random-settings, long—no-random-settings: Random insert-block settings (max_insert_block_size, min_insert_block_size_rows, max_insert_threads) could split the 100000 rows into sub-65536-distinct blocks, taking the UInt16 branch instead and silently not exercising the UInt32 path under test.;long: 100000-row insert plus per-granule bloom-filter build is a heavier-than-typical fixture; tagged long to avoid tight-timeout flakiness.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