diff --git a/TSG发布版本更新记录/TSG-22.05/clickhouse/update-05-ck.sql b/TSG发布版本更新记录/TSG-22.05/clickhouse/update-05-ck.sql new file mode 100644 index 0000000..5aca8b0 --- /dev/null +++ b/TSG发布版本更新记录/TSG-22.05/clickhouse/update-05-ck.sql @@ -0,0 +1,52 @@ +ALTER table tsg_galaxy_v3.session_record_local on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.session_record on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.session_record on cluster ck_query add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; + +ALTER table tsg_galaxy_v3.interim_session_record_local on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_query add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; + +ALTER table tsg_galaxy_v3.security_event_local on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.security_event on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.security_event on cluster ck_query add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; + +ALTER table tsg_galaxy_v3.proxy_event_local on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.proxy_event on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.proxy_event on cluster ck_query add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; + +ALTER table tsg_galaxy_v3.transaction_record_local on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.transaction_record on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.transaction_record on cluster ck_query add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; + +ALTER table tsg_galaxy_v3.sys_packet_capture_event_local on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.sys_packet_capture_event on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.sys_packet_capture_event on cluster ck_query add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; + +ALTER table tsg_galaxy_v3.radius_record_local on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.radius_record on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.radius_record on cluster ck_query add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; + +ALTER table tsg_galaxy_v3.gtpc_record_local on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.gtpc_record on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.gtpc_record on cluster ck_query add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; + +ALTER table tsg_galaxy_v3.voip_record_local on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.voip_record on cluster ck_cluster add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; +ALTER table tsg_galaxy_v3.voip_record on cluster ck_query add column IF NOT EXISTS common_ingestion_time Int64 after common_processing_time; + + +ALTER table tsg_galaxy_v3.security_event_local on cluster ck_cluster add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; +ALTER table tsg_galaxy_v3.security_event on cluster ck_cluster add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; +ALTER table tsg_galaxy_v3.security_event on cluster ck_query add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; + +ALTER table tsg_galaxy_v3.session_record_local on cluster ck_cluster add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; +ALTER table tsg_galaxy_v3.session_record on cluster ck_cluster add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; +ALTER table tsg_galaxy_v3.session_record on cluster ck_query add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; + +ALTER table tsg_galaxy_v3.transaction_record_local on cluster ck_cluster add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; +ALTER table tsg_galaxy_v3.transaction_record on cluster ck_cluster add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; +ALTER table tsg_galaxy_v3.transaction_record on cluster ck_query add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; + +ALTER table tsg_galaxy_v3.interim_session_record_local on cluster ck_cluster add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; +ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_cluster add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr; +ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_query add column IF NOT EXISTS dns_response_latency_ms Int64 after dns_rr;