mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test with low acrdinality and array functions. #3004
This commit is contained in:
parent
d66527ec15
commit
d8a9525cf9
@ -0,0 +1,4 @@
|
|||||||
|
\N
|
||||||
|
1
|
||||||
|
1 \N
|
||||||
|
2 3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user