ClickHouse/dbms/tests/queries/0_stateless/00037_totals_limit.sql
2016-08-17 23:03:22 +03:00

4 lines
138 B
SQL

SET output_format_write_statistics = 0;
SELECT count(), arrayJoin([1, 2, 3]) AS n GROUP BY n WITH TOTALS ORDER BY n LIMIT 1 FORMAT JSON;