Added test with low acrdinality and array functions. #3004

This commit is contained in:
Nikolai Kochetov 2018-09-20 16:53:29 +03:00
parent d66527ec15
commit d8a9525cf9
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,4 @@
\N
1
1 \N
2 3

View File

@ -0,0 +1,13 @@
set allow_experimental_low_cardinality_type = 1;
SELECT CAST(NULL, 'LowCardinality(Nullable(Int8))');
drop table if exists test.lc_null_int8_defnull;
CREATE TABLE test.lc_null_int8_defnull (val LowCardinality(Nullable(Int8)) DEFAULT NULL) ENGINE = MergeTree order by tuple();
insert into test.lc_null_int8_defnull values (1);
select * from test.lc_null_int8_defnull values;
alter table test.lc_null_int8_defnull add column val2 LowCardinality(Nullable(Int8)) DEFAULT NULL;
insert into test.lc_null_int8_defnull values (2, 3);
select * from test.lc_null_int8_defnull order by val;
drop table if exists test.lc_null_int8_defnull;