ClickHouse/tests/queries/0_stateless/00522_multidimensional.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
421 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS multidimensional;
2023-08-12 17:36:57 +00:00
CREATE TABLE multidimensional ENGINE = MergeTree ORDER BY number SETTINGS index_granularity = 8192, index_granularity_bytes = '10Mi' AS SELECT number, arrayMap(x -> (x, [x], [[x]], (x, toString(x))), arrayMap(x -> range(x), range(number % 10))) AS value FROM system.numbers LIMIT 100000;
SELECT sum(cityHash64(toString(value))) FROM multidimensional;
DROP TABLE multidimensional;