2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS arraytest;
|
2018-10-31 09:17:47 +00:00
|
|
|
|
2022-06-23 08:37:52 +00:00
|
|
|
set allow_deprecated_syntax_for_merge_tree=1;
|
2023-09-11 18:54:27 +00:00
|
|
|
set input_format_null_as_default=0;
|
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
|
|
|
|