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