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
{{ message }}
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
Oleg V. Kozlyuk edited this page Nov 26, 2020
·
2 revisions
AggregateFunction column type cannot be queried (or inserted to) directly. To insert into an AggregateFunction column, special functions with suffix ..State are required, like: uniqState, maxState, argMaxState.
Likewise, it's not possible to select directly from such column. To select, a function with ..Merge suffix is required: uniqMerge, maxMerge, argMaxState etc. This is limitation by ClickHouse itself (i.e. you can't select from a table containing AggregateFunction column into CSV or JSON format without getting invalid results)
Given a table with schema:
CREATETABLEt (
c AggregateFunction(uniq, Int8)
) ENGINE = Memory