ClickHouse/tests/queries/0_stateless/01472_many_rows_in_totals.sql
nikitamikhaylov aceb82ae6a better
2020-11-05 19:00:05 +03:00

10 lines
508 B
SQL

set output_format_write_statistics = 0;
select g, s from (select g, sum(number) as s from numbers(4) group by bitAnd(number, 1) as g with totals) array join [1, 2] as a format Pretty;
select '--';
select g, s from (select g, sum(number) as s from numbers(4) group by bitAnd(number, 1) as g with totals) array join [1, 2] as a format TSV;
select '--';
select g, s from (select g, sum(number) as s from numbers(4) group by bitAnd(number, 1) as g with totals) array join [1, 2] as a format JSON;
select '--';