mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
15 lines
620 B
SQL
15 lines
620 B
SQL
DROP TABLE IF EXISTS sites;
|
|
CREATE TABLE sites (Domain UInt8, `Users.UserID` Array(UInt64), `Users.Dates` Array(Array(Date))) ENGINE = MergeTree ORDER BY Domain SETTINGS vertical_merge_algorithm_min_rows_to_activate = 0, vertical_merge_algorithm_min_columns_to_activate = 0;
|
|
|
|
SYSTEM STOP MERGES;
|
|
|
|
INSERT INTO sites VALUES (1,[1],[[]]);
|
|
INSERT INTO sites VALUES (2,[1],[['2018-06-22']]);
|
|
|
|
SELECT count(), countArray(Users.Dates), countArrayArray(Users.Dates) FROM sites;
|
|
SYSTEM START MERGES;
|
|
OPTIMIZE TABLE sites FINAL;
|
|
SELECT count(), countArray(Users.Dates), countArrayArray(Users.Dates) FROM sites;
|
|
|
|
DROP TABLE sites;
|