Added a test just in case #3584

This commit is contained in:
Alexey Milovidov 2018-11-24 02:10:38 +03:00
parent 954c974507
commit fac15418aa
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
iphone 1
iphone 1
iphone 1
\N 1

View File

@ -0,0 +1,2 @@
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;