From e84538becc7a51fcc722dc4ff721ebc7ee0b4921 Mon Sep 17 00:00:00 2001 From: lifengchao Date: Sun, 28 Apr 2024 10:53:47 +0800 Subject: [PATCH] =?UTF-8?q?TSG-20923=20OLAP=20=E5=85=AC=E5=85=B1=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=A2=9E=E5=8A=A0direction=20(24-02=E7=89=88=E6=9C=AC?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../02_init_new_table.sql | 22 + .../TSG 2307版本到2402版本升级操作/03_check.sql | 12 +- .../TSG-24.02/clickhouse/Clickhouse_TSG_建表语句.sql | 4234 +++++++++++++++++ .../TSG-24.02/clickhouse/check-24.02.sql | 12 +- .../TSG-24.02/clickhouse/update-24.02-ck.sql | 30 + 5 files changed, 4298 insertions(+), 12 deletions(-) create mode 100644 TSG发布版本更新记录/TSG-24.02/clickhouse/Clickhouse_TSG_建表语句.sql diff --git a/Clickhouse最新全量建表语句/TSG 2307版本到2402版本升级操作/02_init_new_table.sql b/Clickhouse最新全量建表语句/TSG 2307版本到2402版本升级操作/02_init_new_table.sql index 890f050..57e8dd8 100644 --- a/Clickhouse最新全量建表语句/TSG 2307版本到2402版本升级操作/02_init_new_table.sql +++ b/Clickhouse最新全量建表语句/TSG 2307版本到2402版本升级操作/02_init_new_table.sql @@ -134,6 +134,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -367,6 +368,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -598,6 +600,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -828,6 +831,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -1060,6 +1064,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -1290,6 +1295,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -1521,6 +1527,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -1753,6 +1760,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -1983,6 +1991,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -2203,6 +2212,7 @@ ingestion_time Int64, processing_time Int64, insert_time Int64 MATERIALIZED toUnixTimestamp(now()), address_type Int32, +direction String, vsys_id Int32, client_ip String, client_port Int32, @@ -2297,6 +2307,7 @@ ingestion_time Int64, processing_time Int64, insert_time Int64 , address_type Int32, +direction String, vsys_id Int32, client_ip String, client_port Int32, @@ -2389,6 +2400,7 @@ ingestion_time Int64, processing_time Int64, insert_time Int64 , address_type Int32, +direction String, vsys_id Int32, client_ip String, client_port Int32, @@ -2496,6 +2508,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -2616,6 +2629,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -2734,6 +2748,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -2854,6 +2869,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -3006,6 +3022,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -3155,6 +3172,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -3308,6 +3326,7 @@ TO tsg_galaxy_v3.security_event_local device_group String, sled_ip String, address_type Int32, + direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -3537,6 +3556,7 @@ SELECT device_group, sled_ip, address_type, + direction, vsys_id, t_vsys_id, flags, @@ -3771,6 +3791,7 @@ TO tsg_galaxy_v3.monitor_event_local device_group String, sled_ip String, address_type Int32, + direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -4000,6 +4021,7 @@ SELECT device_group, sled_ip, address_type, + direction, vsys_id, t_vsys_id, flags, diff --git a/Clickhouse最新全量建表语句/TSG 2307版本到2402版本升级操作/03_check.sql b/Clickhouse最新全量建表语句/TSG 2307版本到2402版本升级操作/03_check.sql index f208416..212798d 100644 --- a/Clickhouse最新全量建表语句/TSG 2307版本到2402版本升级操作/03_check.sql +++ b/Clickhouse最新全量建表语句/TSG 2307版本到2402版本升级操作/03_check.sql @@ -2,17 +2,17 @@ SELECT log_id, recv_time, vsys_id, assessment_date, lot_number, file_name, asses FROM tsg_galaxy_v3.assessment_event where recv_time >= toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time