ClickHouse/tests/queries/0_stateless/02734_optimize_group_by.sql
2024-08-05 15:29:14 +00:00

8 lines
332 B
SQL

SELECT 'a' AS key, 'b' as value GROUP BY key WITH CUBE SETTINGS enable_analyzer = 0;
SELECT 'a' AS key, 'b' as value GROUP BY key WITH CUBE SETTINGS enable_analyzer = 1;
SELECT 'a' AS key, 'b' as value GROUP BY ignore(1) WITH CUBE;
SELECT 'a' AS key, 'b' as value GROUP BY ignore(1);
SELECT 'a' AS key, 'b' as value GROUP BY key;