ClickHouse/tests/queries/0_stateless/02579_fill_empty_chunk_analyzer.sql
Azat Khuzhin 0b277a55c7 Fix tests with different results for GROUP BY const for analyzer
- 00757_enum_defaults - TOTALS
- 02699_polygons_sym_difference_rollup - TOTALS
- 02579_fill_empty_chunk - GROUP BY constX with arrayJoin(constX)

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-03-12 19:52:12 +01:00

15 lines
351 B
SQL

-- this SELECT produces empty chunk in FillingTransform
SET enable_positional_arguments = 0;
SET allow_experimental_analyzer = 1;
-- With analyzer this special query has correct output
SELECT
2 AS x,
arrayJoin([NULL, NULL, NULL])
GROUP BY
GROUPING SETS (
(0),
([NULL, NULL, NULL]))
ORDER BY x ASC WITH FILL FROM 1 TO 10;