-- definition drop table if exists Game_Demo.demo_local on cluster cluster1 sync; CREATE TABLE Game_Demo.demo_local on cluster cluster1 ( TransferID Decimal(22, 0) , DBCreateTime DateTime64(3) ) ENGINE = MergeTree() PARTITION BY toYYYYMMDD(DBCreateTime) ORDER BY (TransferID) SETTINGS index_granularity = 8192; CREATE TABLE Game_Demo.demo ON CLUSTER cluster1 AS Game_Demo.demo_local ENGINE = Distributed('cluster1','Game_Demo','demo_local', rand()); insert into Game_Demo.demo (TransferID,DBCreateTime)VALUES (1,now()) ,(2,now()) ,(3,now()) ,(4,now()) ,(5,now()) ,(6,now()) ,(7,now()) ,(8,now()) ,(9,now()) ,(10,now()); select * from system.query_log ql where type ='QueryFinish' and query_kind ='Insert' order by event_time desc limit 10;