2024-01-15 17:15:15 +00:00
|
|
|
set output_format_pretty_color=1;
|
|
|
|
|
2023-12-08 19:20:48 +00:00
|
|
|
-- Disable external aggregation because it may produce several blocks instead of one.
|
|
|
|
set max_bytes_before_external_group_by = 0;
|
2020-09-04 16:32:51 +00:00
|
|
|
set output_format_write_statistics = 0;
|
2023-12-08 19:20:48 +00:00
|
|
|
|
2022-09-29 19:26:52 +00:00
|
|
|
select g, s from (select g, sum(number) as s from numbers(4) group by bitAnd(number, 1) as g with totals order by g) array join [1, 2] as a format Pretty;
|
2020-09-04 16:32:51 +00:00
|
|
|
select '--';
|
|
|
|
|
2022-09-29 19:26:52 +00:00
|
|
|
select g, s from (select g, sum(number) as s from numbers(4) group by bitAnd(number, 1) as g with totals order by g) array join [1, 2] as a format TSV;
|
2020-09-04 16:32:51 +00:00
|
|
|
select '--';
|
|
|
|
|
2022-09-29 19:26:52 +00:00
|
|
|
select g, s from (select g, sum(number) as s from numbers(4) group by bitAnd(number, 1) as g with totals order by g) array join [1, 2] as a format JSON;
|
2020-09-04 16:32:51 +00:00
|
|
|
select '--';
|