2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS arraytest;
|
2018-10-31 09:17:47 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
CREATE TABLE arraytest ( created_date Date DEFAULT toDate(created_at), created_at DateTime DEFAULT now(), strings Array(String) DEFAULT emptyArrayString()) ENGINE = MergeTree(created_date, cityHash64(created_at), (created_date, cityHash64(created_at)), 8192);
|
2018-10-31 09:17:47 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
INSERT INTO arraytest (created_at, strings) VALUES (now(), ['aaaaa', 'bbbbb', 'ccccc']);
|
2019-12-16 10:24:02 +00:00
|
|
|
INSERT INTO arraytest (created_at, strings) VALUES (now(), ['aaaaa', 'bbbbb', null]); -- { clientError 349 }
|
2018-10-31 09:17:47 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT strings from arraytest;
|
2018-10-31 09:17:47 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS arraytest;
|
2018-10-31 09:17:47 +00:00
|
|
|
|