Repository navigation
Conversation
| for (const auto & elem : merged_maps) | ||
| /// Sort entries by key before serializing to produce a canonical byte | ||
| /// representation, independent of hash-map iteration order. | ||
| constexpr bool sort_serialize = true; |
There was a problem hiding this comment.
TODO: Decide if to keep it or drop it. Dropping it would change the serialized format - by entries being unsorted.
|
Workflow [PR], commit [5a7dc69] Summary: ❌
AI ReviewSummaryThe PR adds typed aggregation for the Missing context / blind spots
Final VerdictStatus: ✅ Approve. No new inline findings; remaining CI should complete before merging. |
|
📊 Cloud Performance Report
This PR only changes the sumMap/minMap/maxMap family: it adds a typed hash-map fast path, switches the generic path to an unordered map, and sorts keys at output. None of the ClickBench or TPC-H queries call these functions, so the benchmarks cannot show the PR's effect either way. ClickBench Q31 (-17.5%) was correctly held at no change because it falls within master's recent spread, and its CPU time barely moved. Q34 (-9.8%) stays not sure because master's own timings for it shifted around 2026-10-08, and the query does not reach the changed code. clickbenchFlagged queries (1 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. 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
|
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 755/844 (89.45%) | Lost baseline coverage (was covered on master, now uncovered in this PR): 58 line(s) · Uncovered code |
Build profile diff (arm_release)Comparing Binary sizes
The official master build is compiled with Object file sizes
|
| Object file | Master | PR | Δ |
|---|---|---|---|
src/AggregateFunctions/CMakeFiles/clickhouse_aggregate_functions.dir/AggregateFunctionSumMapTyped.c… |
new | 2.05 MiB | +2.05 MiB |
src/AggregateFunctions/CMakeFiles/clickhouse_aggregate_functions.dir/AggregateFunctionSumMap.cpp.o |
2.99 MiB | 3.44 MiB | +466.61 KiB (+15.25%) |
719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.
Compile time of recompiled translation units
4289 translation units recompiled, 19843 s compile time in total, 4285 of them have a recent master baseline.
Translation units without a recent master baseline:
src/AggregateFunctions/AggregateFunctionSumMapTyped.cpp: 11.4 sprograms/keeper/Keeper.cpp (clickhouse-keeper): 7.6 s
Improves #92093
Also fixes: https://fiddle.clickhouse.com/38de3c8b-8da9-4af0-810f-223b3ec395fa
Changelog category (leave one):
Changelog entry:
Improved performance of
sumMap,sumMapWithOverflow,sumMapFiltered,minMap, andmaxMapby using typed aggregation paths for supported key and value types.Workflow [PR]
Sync PR [sync-upstream/pr/107554]