ClickHouse/tests/queries/0_stateless/02233_with_total_empty_chunk.sql
2024-05-30 19:41:08 +00:00

4 lines
222 B
SQL

SET allow_experimental_analyzer = 1;
SELECT (NULL, NULL, NULL, NULL, NULL, NULL, NULL) FROM numbers(0) GROUP BY number WITH TOTALS HAVING sum(number) <= arrayJoin([]) -- { serverError ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER };