Repository navigation
Remove the sharded aggregator in favor of the adaptive aggregator - #116532
Conversation
|
Workflow [PR], commit [8b9edfb] Summary: ✅
AI ReviewSummaryThis PR removes the sharded PR Metadata
Findings
Final Verdict
LLVM Coverage ReportMeasured on commit 8b9edfb.
Changed lines: Changed C/C++ lines covered: 104/106 (98.11%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Object file sizes27 object files changed (-25.38 KiB total), 0 added.
738 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units50 translation units recompiled, 452 s compile time in total, 50 of them have a recent master baseline. Median compile-time ratio to the baselines is ×1.07 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
Related: #111459
Removes the sharded aggregator (
enable_sharding_aggregator, off by default): since the adaptive aggregator (enable_adaptive_aggregator) arrived, there is no workload left where sharding wins. Both attack the same cost - every thread aggregating every key - but the adaptive aggregator routes only the rare keys, keeps the frequent keys in thread-local tables, and handles skew, low cardinality, and external aggregation, which the sharded exchange never supported.The setting is retired as obsolete rather than deleted:
SET enable_sharding_aggregator = ...and profiles carrying it keep working with no effect (is_obsolete = 1insystem.settings), and aSettingsChangesHistoryentry documents the removal and points toenable_adaptive_aggregator. Nothing about this feature was ever serialized in query plans or gated by a protocol revision, so mixed-version clusters are unaffected; an older peer sending the setting hits a known, inert name. In the other direction the standard obsolete-setting semantics apply, as for every retired setting: a changed value is still forwarded by name, so an older worker that still has the feature keeps honoring it there until it is upgraded - results are identical either way.Removed with the feature:
BufferedShardByHashTransform, theAggregatingStepscatter pipeline with itsScatter/AggregatingShardedstages, the admission logic, and the feature's ten test suites. Tests that only pinned the setting off (adaptive suites, several integration tests carrying a now-impossible TODO) lose the pins;04278_parallel_replicas_coordinator_mode_collisionstays, reworked without the sharded arm, because the parallel-replicas settings-scope fix it pins survives this change and its companion tests reference it.IColumn::computeHashIntoand its benchmark stay - the parallel-window scatter and hash joins use the same kernel - with comments repointed toScatterByPartitionTransform.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Removed the sharded
GROUP BYaggregation (settingenable_sharding_aggregator, disabled by default) in favor of the adaptive aggregation (enable_adaptive_aggregator, enabled by default), which targets the same high cardinality workloads without the weaknesses on skewed or low-cardinality keys and with external-aggregation support. The setting is kept as obsolete: setting it is still accepted and has no effect.Workflow [PR]
Sync PR [sync-upstream/pr/116532]
Version info
26.9.1.310(included in26.9and later)