ClickHouse/tests/queries/0_stateless/02734_optimize_group_by.sql

8 lines
356 B
SQL

SELECT 'a' AS key, 'b' as value GROUP BY key WITH CUBE SETTINGS allow_experimental_analyzer = 0;
SELECT 'a' AS key, 'b' as value GROUP BY key WITH CUBE SETTINGS allow_experimental_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;