mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-06 14:32:22 +00:00
0b277a55c7
- 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>
4 lines
322 B
SQL
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;
|