You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createtablet (a Int32) engine= MergeTree order by tuple();
insert into t values (3), (4);
select hex(sumState(a)) from t;
SELECT sumMerge(CAST(unhex('0700000000000000'), 'AggregateFunction(sumState, Int32)'));
24.8 output:
0700000000000000
7
I expect to see (behavior before 22.8):
Code: 43. DB::Exception: Received from localhost:9000. DB::Exception: Illegal type AggregateFunction(sumState, Int32) of argument for aggregate function with Merge suffix, because it corresponds to different aggregate function: sumState instead of sum. (ILLEGAL_TYPE_OF_ARGUMENT)
(query: SELECT sumMerge(CAST(unhex('0700000000000000'), 'AggregateFunction(sumState, Int32)'));)
What had caused this change in behaviour?
The text was updated successfully, but these errors were encountered:
Because you can not have a value of type AggregateFunction(sumState, Int64) as I know. And the state (result of sumState) is from sum function, not from sumState (then it would be sumStateState).
24.8 output:
I expect to see (behavior before 22.8):
What had caused this change in behaviour?
The text was updated successfully, but these errors were encountered: