From 2844f215e09f5c9067433a270ff70735614f9813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=BD?= Date: Thu, 2 Mar 2023 09:10:30 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0query=5Flog=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E7=95=99=E5=AD=98=E6=97=B6=E9=97=B4=E4=B8=BA60=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Clickhouse最新全量建表语句/system.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Clickhouse最新全量建表语句/system.sql b/Clickhouse最新全量建表语句/system.sql index 237794d..aa7993d 100644 --- a/Clickhouse最新全量建表语句/system.sql +++ b/Clickhouse最新全量建表语句/system.sql @@ -4,4 +4,4 @@ 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 30 DAY; +alter table system.query_log on cluster ck_all modify TTL event_date + INTERVAL 60 DAY;