内容摘要:复制#首先,创建本地表 CREATETABLEtable_localONCLUSTERcluster_test ( OrderKeyU

复制# 首先,析型创建本地表 CREATETABLE table_local ON CLUSTER cluster_test ( OrderKey UInt32,数据
# 列定义 OrderDate Date, Quantity UInt8, TotalPrice UInt32, …… ) ENGINE = MergeTree() # 表引擎 PARTITION BY toYYYYMM(OrderDate) # 分区方式 ORDERBY (OrderDate, OrderKey); # 排序方式 SETTINGS index_granularity = 8192; # 数据块大小 # 然后,
免费信息发布网创建分布式表 CREATETABLE table_distribute ON CLUSTER cluster_test AS table_local ENGINE = Distributed(cluster_test,库Ce快
default, table_local, rand()) # 关系映射引擎 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.
企商汇