mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
3931dbd848
Suppose you have a table with lots of rows, like: create table data_02233 (parent_key Int, child_key Int, value Int) engine=MergeTree() order by parent_key And you want to do GROUP BY (parent_key, child_key) with optimize_aggregation_in_order: select parent_key, child_key, count() from data_02233 group by parent_key, child_key with totals order by parent_key, child_key Right now, it is not possible, because optimize_aggregation_in_order supports only w/o key aggregation, i.e. GROUP BY cannot be done inside unique parent_key region. v2: rebase on top SortDescriptionWithPositions v3: disable two-level aggregation v4: fix merging of aggregates v5: improve tests coverage (add a test with multiple parts, to add merge processor) v6: add a test for compiled aggregate functions (sum()) explicitly v7: add missing sortBlock() v8: remove group_by_description_optimized Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com> |
||
---|---|---|
.. | ||
0_stateless | ||
1_stateful | ||
bugs | ||
shell_config.sh |