ClickHouse/dbms/tests/queries/0_stateless/00037_totals_limit.sql

4 lines
138 B
MySQL
Raw Normal View History

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;