mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #52040 from HarryLeeIBM/hlee-s390x-for-each
Fix ForEach aggregate state for s390x
This commit is contained in:
commit
b9832c26a9
@ -240,7 +240,7 @@ public:
|
||||
void serialize(ConstAggregateDataPtr __restrict place, WriteBuffer & buf, std::optional<size_t> /* version */) const override
|
||||
{
|
||||
const AggregateFunctionForEachData & state = data(place);
|
||||
writeBinary(state.dynamic_array_size, buf);
|
||||
writeBinaryLittleEndian(state.dynamic_array_size, buf);
|
||||
|
||||
const char * nested_state = state.array_of_aggregate_datas;
|
||||
for (size_t i = 0; i < state.dynamic_array_size; ++i)
|
||||
@ -255,7 +255,7 @@ public:
|
||||
AggregateFunctionForEachData & state = data(place);
|
||||
|
||||
size_t new_size = 0;
|
||||
readBinary(new_size, buf);
|
||||
readBinaryLittleEndian(new_size, buf);
|
||||
|
||||
ensureAggregateData(place, new_size, *arena);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user