diff --git a/Clickhouse最新全量建表语句/Clickhouse_建表语句_测试环境.sql b/Clickhouse最新全量建表语句/Clickhouse_建表语句_测试环境.sql index 3a10089..fdb9f25 100644 --- a/Clickhouse最新全量建表语句/Clickhouse_建表语句_测试环境.sql +++ b/Clickhouse最新全量建表语句/Clickhouse_建表语句_测试环境.sql @@ -133,7 +133,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.gtpc_record_local ON CLUSTER ck_cluster common_policy_id Int64, common_user_tags String, common_user_region String, - common_namespace_id Int64 default 1, + common_namespace_id Int64, common_client_ip String, common_internal_ip String, common_client_port Int64, @@ -432,7 +432,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record_local ON CLUSTER common_policy_id Int64, common_user_tags String, common_user_region String, - common_namespace_id Int64 default 1, + common_namespace_id Int64, common_client_ip String, common_internal_ip String, common_client_port Int64, @@ -672,7 +672,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record_local ON CLUSTER ck_ common_policy_id Int64, common_user_tags String, common_user_region String, - common_namespace_id Int64 default 1, + common_namespace_id Int64, common_client_ip String, common_internal_ip String, common_client_port Int64, @@ -1611,7 +1611,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.voip_record_local ON CLUSTER ck_cluster common_policy_id Int64, common_user_tags String, common_user_region String, - common_namespace_id Int64 default 1, + common_namespace_id Int64, common_client_ip String, common_internal_ip String, common_client_port Int64, @@ -1932,7 +1932,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.sys_packet_capture_event_local ON CLUST common_policy_id Int64, common_user_tags String, common_user_region String, - common_namespace_id Int64 default 1, + common_namespace_id Int64, common_client_ip String, common_internal_ip String, common_client_port Int64, @@ -2028,7 +2028,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.security_event_local ON CLUSTER ck_clus common_policy_id Int64, common_user_tags String, common_user_region String, - common_namespace_id Int64 default 1, + common_namespace_id Int64, common_client_ip String, common_internal_ip String, common_client_port Int64, @@ -2266,7 +2266,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.proxy_event_local ON CLUSTER ck_cluster common_policy_id Int64, common_user_tags String, common_user_region String, - common_namespace_id Int64 default 1, + common_namespace_id Int64, common_client_ip String, common_internal_ip String, common_client_port Int64, @@ -2430,7 +2430,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.session_record_local ON CLUSTER ck_clus common_policy_id Int64, common_user_tags String, common_user_region String, - common_namespace_id Int64 default 1, + common_namespace_id Int64, common_client_ip String, common_internal_ip String, common_client_port Int64, @@ -2669,7 +2669,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.radius_record_local ON CLUSTER ck_clust common_policy_id Int64, common_user_tags String, common_user_region String, - common_namespace_id Int64 default 1, + common_namespace_id Int64, common_client_ip String, common_internal_ip String, common_client_port Int64, diff --git a/TSG发布版本更新记录/TSG-22.08/clickhouse/update-08-ck.sql b/TSG发布版本更新记录/TSG-22.08/clickhouse/update-08-ck.sql index 1e94e31..3c7358f 100644 --- a/TSG发布版本更新记录/TSG-22.08/clickhouse/update-08-ck.sql +++ b/TSG发布版本更新记录/TSG-22.08/clickhouse/update-08-ck.sql @@ -1,37 +1,35 @@ -set distributed_ddl_task_timeout = 180; - -ALTER table tsg_galaxy_v3.session_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 default 1 after common_user_region; +ALTER table tsg_galaxy_v3.session_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.session_record on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.session_record on cluster ck_query add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; -ALTER table tsg_galaxy_v3.interim_session_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 default 1 after common_user_region; +ALTER table tsg_galaxy_v3.interim_session_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_query add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; -ALTER table tsg_galaxy_v3.security_event_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 default 1 after common_user_region; +ALTER table tsg_galaxy_v3.security_event_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.security_event on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.security_event on cluster ck_query add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; -ALTER table tsg_galaxy_v3.proxy_event_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 default 1 after common_user_region; +ALTER table tsg_galaxy_v3.proxy_event_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.proxy_event on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.proxy_event on cluster ck_query add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; -ALTER table tsg_galaxy_v3.transaction_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 default 1 after common_user_region; +ALTER table tsg_galaxy_v3.transaction_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.transaction_record on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.transaction_record on cluster ck_query add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; -ALTER table tsg_galaxy_v3.sys_packet_capture_event_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 default 1 after common_user_region; +ALTER table tsg_galaxy_v3.sys_packet_capture_event_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.sys_packet_capture_event on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.sys_packet_capture_event on cluster ck_query add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; -ALTER table tsg_galaxy_v3.radius_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 default 1 after common_user_region; +ALTER table tsg_galaxy_v3.radius_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.radius_record on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.radius_record on cluster ck_query add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; -ALTER table tsg_galaxy_v3.gtpc_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 default 1 after common_user_region; +ALTER table tsg_galaxy_v3.gtpc_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.gtpc_record on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.gtpc_record on cluster ck_query add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; -ALTER table tsg_galaxy_v3.voip_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 default 1 after common_user_region; +ALTER table tsg_galaxy_v3.voip_record_local on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.voip_record on cluster ck_cluster add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; ALTER table tsg_galaxy_v3.voip_record on cluster ck_query add column IF NOT EXISTS common_namespace_id Int64 after common_user_region; \ No newline at end of file