From 37702778e7e550680f36c1209b749bcb0721bd79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=BD?= Date: Tue, 21 Mar 2023 09:54:07 +0000 Subject: [PATCH] =?UTF-8?q?ck=5Fall=E4=B8=8D=E8=83=BD=E6=89=A7=E8=A1=8Cddl?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TSG发布版本更新记录/TSG-23.01/clickhouse/update-23.01-ck.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TSG发布版本更新记录/TSG-23.01/clickhouse/update-23.01-ck.sql b/TSG发布版本更新记录/TSG-23.01/clickhouse/update-23.01-ck.sql index 68b6d23..5e7ba07 100644 --- a/TSG发布版本更新记录/TSG-23.01/clickhouse/update-23.01-ck.sql +++ b/TSG发布版本更新记录/TSG-23.01/clickhouse/update-23.01-ck.sql @@ -242,5 +242,6 @@ create table IF NOT EXISTS `system`.parts_cluster ON CLUSTER ck_query as `system 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_all modify TTL event_date + INTERVAL 60 DAY; +alter table system.query_log on cluster ck_cluster modify TTL event_date + INTERVAL 60 DAY; +alter table system.query_log on cluster ck_query modify TTL event_date + INTERVAL 60 DAY;