Repository navigation
Add test: system.parts_columns.estimates.null_count column values not verified - #104497
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 [92b9e2a] Summary: ✅ AI ReviewSummaryThis PR adds a focused stateless regression test for ClickHouse Rules
Final Verdict
|
|
@clickgapai why have you closed this PR? |
f5c08bb to
92b9e2a
Compare
|
Good test, thank you! |
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 #102356.
That PR This PR adds
NullCountstatistics type for tracking NULL values in Nullable columns. Changes include: (1) NewStatisticsNullCountclass inStatisticsNullCount.cpp/hfor counting NULLs, (2) Integration withConditionSelectivityEstimatorforIS NULL/IS NOT NULLpredicate estimation, (3) Ne1.
system.parts_columns.estimates.null_countcolumn values not verifiedsrc/Storages/System/StorageSystemPartsColumns.cpp:327Risk:
StorageSystemPartsColumns.cpp:327-329 populatesestimates.null_countfromNullCountstatistics. Risk: if the value extraction is broken (wrong statistics type cast, incorrect field access), userWhat's unique vs PR tests: PR test 03625_auto_statistics.sql queries estimates.cardinality/min/max but NOT estimates.null_count. PR test 04063_statistics_null_count_prewhere.sql tests prewhere ordering via EXPLAIN but never que
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.5.1.491