From f47ab04435a719519e9c1f4eb81c0824a0376b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=BD?= Date: Tue, 7 Feb 2023 03:03:02 +0000 Subject: [PATCH] =?UTF-8?q?23.01=20Update=20system.sql=E7=BC=BA=E5=B0=91;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Clickhouse最新全量建表语句/system.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Clickhouse最新全量建表语句/system.sql b/Clickhouse最新全量建表语句/system.sql index 712ef5c..d4be8b6 100644 --- a/Clickhouse最新全量建表语句/system.sql +++ b/Clickhouse最新全量建表语句/system.sql @@ -3,5 +3,5 @@ create table IF NOT EXISTS `system`.disks_cluster ON CLUSTER ck_query as `system create table IF NOT EXISTS `system`.parts_cluster ON CLUSTER ck_query as `system`.parts ENGINE =Distributed(ck_all,`system`,parts,rand()); create table IF NOT EXISTS `system`.query_log_cluster ON CLUSTER ck_query as `system`.query_log ENGINE =Distributed(ck_all,`system`,query_log,rand()); CREATE TABLE IF NOT EXISTS `system`.columns_cluster ON CLUSTER ck_query AS `system`.columns ENGINE=Distributed(ck_all,`system`,columns,rand()); -CREATE TABLE IF NOT EXISTS `system`.processes_cluster ON CLUSTER ck_query AS `system`.processes ENGINE=Distributed(ck_all,`system`,processes,rand()) -alter table system.query_log on cluster ck_cluster modify TTL event_date + INTERVAL 30 DAY; \ No newline at end of file +CREATE TABLE IF NOT EXISTS `system`.processes_cluster ON CLUSTER ck_query AS `system`.processes ENGINE=Distributed(ck_all,`system`,processes,rand()); +alter table system.query_log on cluster ck_cluster modify TTL event_date + INTERVAL 30 DAY;