Repository navigation
Add test: Batched no-key uniqCombined over FixedString columns (ColumnFixedString branch) is untested - #110327
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 [6b799d0] Summary: ✅ AI ReviewSummaryThis PR adds a focused stateless regression test for the Final Verdict
|
Existing rows only differed before the first \0 pad byte, so a NUL-terminated hash regression would pass. New t_uniq_fs_nul rows share prefix 'p'\0 and diverge after the NUL, cross-checked vs uniqExact. Requested by @clickhouse-gh[bot] in ClickHouse#110327 (comment)
Existing rows only differed before the first \0 pad byte, so a NUL-terminated hash regression would pass. New t_uniq_fs_nul rows share prefix 'p'\0 and diverge after the NUL, cross-checked vs uniqExact. Requested by @clickhouse-gh[bot] in ClickHouse#110327 (comment)
…pr109794 Add test: Batched no-key `uniqCombined` over FixedString columns (ColumnFixedString branch) is untested
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 #109794.
PR #109794 optimizes
uniqCombined/uniqCombined64for aggregation WITHOUT a key. It (1) switches the String specialization type parameter fromStringtostd::string_view, (2) overridesaddBatchSinglePlace,addBatchSinglePlaceNotNullandaddManyDefaultsinAggregateFunctionUniqCombined1. Batched no-key
uniqCombinedover FixedString columns (ColumnFixedString branch) is untestedsrc/AggregateFunctions/AggregateFunctionUniqCombined.h:237,src/AggregateFunctions/AggregateFunctionUniqCombined.h:238Risk:
addBatchImpl(AggregateFunctionUniqCombined.h:231) first triestypeid_cast<const ColumnString *>; when the column is aFixedStringthis fails and execution enters the else branch at 237-238 thatassert_cast<const ColumnFixedString &>and hashesgetDataAt(row). RISK: if the dispatch or the cast were wrong, FixedString aggregation without a key would throw a LOGICAL_ERROR exception or hash the wrong bytes -> wrong distinct counts.What's unique vs PR tests: The PR's 04511 test aggregates only variable String columns (the typeid_cast branch); the FixedString sibling branch at 237-238 is never exercised.
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.7.1.1185(included in26.7and later)