mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
7 lines
297 B
SQL
7 lines
297 B
SQL
DROP TABLE IF EXISTS test.test;
|
|
CREATE TABLE test.test(date Date, keys Array(Nullable(UInt8))) ENGINE = MergeTree(date, date, 1);
|
|
INSERT INTO test.test VALUES ('2017-09-10', [1, 2, 3, 4, 5, 6, 7, NULL]);
|
|
SELECT * FROM test.test LIMIT 1;
|
|
SELECT avgArray(keys) FROM test.test;
|
|
DROP TABLE test.test;
|