2019-04-18 18:48:04 +00:00
|
|
|
DROP TABLE IF EXISTS test.mt_00168;
|
|
|
|
DROP TABLE IF EXISTS test.mt_00168_buffer;
|
|
|
|
CREATE TABLE test.mt_00168 (EventDate Date, UTCEventTime DateTime, MoscowEventDate Date DEFAULT toDate(UTCEventTime)) ENGINE = MergeTree(EventDate, UTCEventTime, 8192);
|
|
|
|
CREATE TABLE test.mt_00168_buffer AS test.mt_00168 ENGINE = Buffer(test, mt_00168, 16, 10, 100, 10000, 1000000, 10000000, 100000000);
|
|
|
|
DESC TABLE test.mt_00168;
|
|
|
|
DESC TABLE test.mt_00168_buffer;
|
|
|
|
INSERT INTO test.mt_00168 (EventDate, UTCEventTime) VALUES ('2015-06-09', '2015-06-09 01:02:03');
|
|
|
|
SELECT * FROM test.mt_00168_buffer;
|
|
|
|
INSERT INTO test.mt_00168_buffer (EventDate, UTCEventTime) VALUES ('2015-06-09', '2015-06-09 01:02:03');
|
|
|
|
SELECT * FROM test.mt_00168_buffer;
|
|
|
|
DROP TABLE test.mt_00168_buffer;
|
|
|
|
DROP TABLE test.mt_00168;
|