Repository navigation
Write the serialized state of AggregateFunction in RawBLOB output - #127288
Conversation
`RawBLOBRowOutputFormat::writeField` used `getDataAt`, which for `ColumnAggregateFunction` returns the bytes of the pointer to the state, not the state. Serialize the state instead, the same way as its conversion to `String`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [1e8fe96] Summary: ✅
AI ReviewSummary
Final VerdictStatus: ✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes4 object files changed (+24.12 KiB total), 0 added.
719 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 units7 translation units recompiled, 7 s compile time in total, 7 of them have a recent master baseline. |
|
🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=127288&sha=96f4b075c65837d7408270a2a58f6bbd3fdc6abf&name_0=PR&name_1=Stress%20test%20%28amd_tsan%29 ( |
|
The fix is already merged: #127123 (2026-10-22 21:16 UTC). This run's The run started at 2026-10-22 00:19 UTC, about 21 hours before the merge, so its tree did not have the fix. Since the merge, CIDB has no |
Backport #127288 to 26.10: Write the serialized state of `AggregateFunction` in `RawBLOB` output
Backport #127288 to 26.8: Write the serialized state of `AggregateFunction` in `RawBLOB` output
Backport #127288 to 26.9: Write the serialized state of `AggregateFunction` in `RawBLOB` output
Backport #127288 to 26.3: Write the serialized state of `AggregateFunction` in `RawBLOB` output
RawBLOBoutput wrotecolumn.getDataAt(row_num)for every value. ForColumnAggregateFunction,getDataAtreturns the 8 bytes of the pointer to the aggregate state rather than the state itself, soSELECT sumState(number) FROM numbers(3) FORMAT RawBLOBprinted a memory address, and the actual state was lost regardless of its size.Now an
AggregateFunctioncolumn is written as its serialized state, the same bytes asCAST(state AS String)(no length prefix, consistent with howRawBLOBwrites strings).Related: #115250
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The
RawBLOBoutput format now writes the serialized state ofAggregateFunctioncolumns (the same as their conversion toString) instead of an in-memory pointer.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/127288]
Version info
26.11.1.709-master(included in26.11and later)26.10.2.104,26.9.26.15,26.8.35.11,26.3.61.9