ClickHouse/tests/queries/0_stateless/00757_enum_defaults_const.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

4 lines
322 B
SQL

SET allow_experimental_analyzer=0;
select os_name, count() from (SELECT CAST('iphone' AS Enum8('iphone' = 1, 'android' = 2)) AS os_name) group by os_name WITH TOTALS;
select toNullable(os_name) AS os_name, count() from (SELECT CAST('iphone' AS Enum8('iphone' = 1, 'android' = 2)) AS os_name) group by os_name WITH TOTALS;