2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS multidimensional;
|
|
|
|
CREATE TABLE multidimensional (x UInt64, arr Array(Array(String))) ENGINE = MergeTree ORDER BY x;
|
2017-12-03 08:23:34 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
INSERT INTO multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []]);
|
|
|
|
SELECT * FROM multidimensional;
|
2017-12-03 08:23:34 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
ALTER TABLE multidimensional ADD COLUMN t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date));
|
|
|
|
INSERT INTO multidimensional (t) VALUES (('Hello', ['World', NULL], (123, '2000-01-01')));
|
|
|
|
SELECT * FROM multidimensional ORDER BY t;
|
2017-12-03 08:23:34 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
OPTIMIZE TABLE multidimensional;
|
|
|
|
SELECT * FROM multidimensional ORDER BY t;
|
2017-12-03 08:23:34 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE multidimensional;
|
2017-12-03 08:23:34 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
CREATE TABLE multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = Memory;
|
|
|
|
INSERT INTO multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01')));
|
|
|
|
SELECT * FROM multidimensional ORDER BY t;
|
|
|
|
DROP TABLE multidimensional;
|
2017-12-03 08:23:34 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
CREATE TABLE multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = TinyLog;
|
|
|
|
INSERT INTO multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01')));
|
|
|
|
SELECT * FROM multidimensional ORDER BY t;
|
|
|
|
DROP TABLE multidimensional;
|
2017-12-03 08:23:34 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
CREATE TABLE multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = StripeLog;
|
|
|
|
INSERT INTO multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01')));
|
|
|
|
SELECT * FROM multidimensional ORDER BY t;
|
|
|
|
DROP TABLE multidimensional;
|
2017-12-03 08:23:34 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
CREATE TABLE multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = Log;
|
|
|
|
INSERT INTO multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01')));
|
|
|
|
SELECT * FROM multidimensional ORDER BY t;
|
|
|
|
DROP TABLE multidimensional;
|