ClickHouse/tests/queries/0_stateless/00614_array_nullable.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

7 lines
267 B
SQL

DROP TABLE IF EXISTS test;
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;