ClickHouse/dbms/tests/queries/0_stateless/00739_array_element_nullable_string_mattrobenolt.sql
2019-06-03 20:36:27 +03:00

14 lines
459 B
SQL

drop temporary table if exists wups;
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;