Added a test from Matt Robenolt #2662

This commit is contained in:
Alexey Milovidov 2018-10-17 00:46:42 +03:00
parent 781332d57c
commit 63bb074ba7
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,4 @@
1 foo
1 foo
1 \N
\N

View File

@ -0,0 +1,12 @@
create temporary table wups (a Array(Nullable(String)));
select count(), a[1] from wups group by a[1];
insert into wups (a) values(['foo']);
select count(), a[1] from wups group by a[1];
insert into wups (a) values([]);
select count(), a[1] from wups group by a[1] order by a[1];
drop temporary table wups;
create temporary table wups (a Array(Nullable(String)));
insert into wups (a) values([]);
select a[1] from wups;