ClickHouse/tests/queries/0_stateless/02155_nested_lc_defalut_bug.sql
2022-01-10 21:30:28 +03:00

9 lines
380 B
SQL

DROP TABLE IF EXISTS nested_test;
CREATE TABLE nested_test (x UInt32, `nest.col1` Array(String), `nest.col2` Array(Int8)) ENGINE = MergeTree ORDER BY x;
ALTER TABLE nested_test ADD COLUMN `nest.col3` Array(LowCardinality(String));
INSERT INTO nested_test (x, `nest.col1`, `nest.col2`) values (1, ['a', 'b'], [3, 4]);
SELECT * FROM nested_test;
DROP TABLE IF EXISTS nested_test;