From 830be7cb5d4538d4f5bd80b48831326f5ac4b7e2 Mon Sep 17 00:00:00 2001 From: houjinchuan Date: Tue, 4 Apr 2023 09:58:23 +0800 Subject: [PATCH] =?UTF-8?q?23.04=20TSG=20CK=20dos=5Fevent=E8=A1=A8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0profile=5Fid=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TSG_OLAP_PRIMARY_KEY_LOG_ID/Clickhouse_TSG_建表语句.sql | 3 +++ .../TSG_OLAP_PRIMARY_KEY_VSYS_ID/Clickhouse_TSG_建表语句.sql | 3 +++ .../TSG-23.04/clickhouse/update-23.04-ck.sql | 6 ++++++ 3 files changed, 12 insertions(+) create mode 100644 TSG发布版本更新记录/TSG-23.04/clickhouse/update-23.04-ck.sql diff --git a/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_LOG_ID/Clickhouse_TSG_建表语句.sql b/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_LOG_ID/Clickhouse_TSG_建表语句.sql index 5a7b8bc..76c9ef3 100644 --- a/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_LOG_ID/Clickhouse_TSG_建表语句.sql +++ b/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_LOG_ID/Clickhouse_TSG_建表语句.sql @@ -62,6 +62,7 @@ ENGINE = Distributed('ck_cluster', CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event_local ON CLUSTER ck_cluster( log_id UInt64, + profile_id UInt64, start_time Int64, end_time Int64, attack_type String, @@ -83,6 +84,7 @@ SETTINGS index_granularity = 8192; CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_cluster( log_id UInt64, + profile_id UInt64, start_time Int64, end_time Int64, attack_type String, @@ -100,6 +102,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_cluster( CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_query( log_id UInt64, + profile_id UInt64, start_time Int64, end_time Int64, attack_type String, diff --git a/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_VSYS_ID/Clickhouse_TSG_建表语句.sql b/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_VSYS_ID/Clickhouse_TSG_建表语句.sql index 4cb9281..720ffa8 100644 --- a/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_VSYS_ID/Clickhouse_TSG_建表语句.sql +++ b/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_VSYS_ID/Clickhouse_TSG_建表语句.sql @@ -61,6 +61,7 @@ ENGINE = Distributed('ck_cluster', CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event_local ON CLUSTER ck_cluster( log_id UInt64, + profile_id UInt64, start_time Int64, end_time Int64, attack_type String, @@ -81,6 +82,7 @@ SETTINGS index_granularity = 8192; CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_cluster( log_id UInt64, + profile_id UInt64, start_time Int64, end_time Int64, attack_type String, @@ -98,6 +100,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_cluster( CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_query( log_id UInt64, + profile_id UInt64, start_time Int64, end_time Int64, attack_type String, diff --git a/TSG发布版本更新记录/TSG-23.04/clickhouse/update-23.04-ck.sql b/TSG发布版本更新记录/TSG-23.04/clickhouse/update-23.04-ck.sql new file mode 100644 index 0000000..0e50ac4 --- /dev/null +++ b/TSG发布版本更新记录/TSG-23.04/clickhouse/update-23.04-ck.sql @@ -0,0 +1,6 @@ +set distributed_ddl_task_timeout = 180; + + +ALTER table tsg_galaxy_v3.dos_event_local on cluster ck_cluster add column IF NOT EXISTS profile_id UInt64 after log_id; +ALTER table tsg_galaxy_v3.dos_event on cluster ck_cluster add column IF NOT EXISTS profile_id UInt64 after log_id; +ALTER table tsg_galaxy_v3.dos_event on cluster ck_query add column IF NOT EXISTS profile_id UInt64 after log_id; \ No newline at end of file