ClickHouse/tests/queries/0_stateless/00614_array_nullable.sql
Alexander Tokmakov c068593a0d fix tests
2022-06-23 12:58:34 +02:00

8 lines
313 B
SQL

DROP TABLE IF EXISTS test;
set allow_deprecated_syntax_for_merge_tree=1;
CREATE TABLE test(date Date, keys Array(Nullable(UInt8))) ENGINE = MergeTree(date, date, 1);
INSERT INTO test VALUES ('2017-09-10', [1, 2, 3, 4, 5, 6, 7, NULL]);
SELECT * FROM test LIMIT 1;
SELECT avgArray(keys) FROM test;
DROP TABLE test;