Fix return type of groupUniqArray

This commit is contained in:
Alexey Milovidov 2021-01-13 21:11:56 +03:00
parent 297a16407a
commit ec12a089f3
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,2 @@
['Hello','World','Упячка']
['Hello','World','World','Упячка','Упячка','Упячка']

View File

@ -0,0 +1,2 @@
SELECT arraySort(groupUniqArray(x)) FROM (SELECT CAST(arrayJoin([1, 2, 3, 2, 3, 3]) AS Enum('Hello' = 1, 'World' = 2, 'Упячка' = 3)) AS x);
SELECT arraySort(groupArray(x)) FROM (SELECT CAST(arrayJoin([1, 2, 3, 2, 3, 3]) AS Enum('Hello' = 1, 'World' = 2, 'Упячка' = 3)) AS x);