diff --git a/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl.sql b/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl.sql index b9c94b1..0840c6c 100644 --- a/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl.sql +++ b/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl.sql @@ -296,6 +296,7 @@ sip_responder_sdp_media_type String, sip_responder_sdp_content String, sip_duration_s Nullable(Int32), sip_bye String, +sip_bye_reason String, rtp_payload_type_c2s Nullable(Int32), rtp_payload_type_s2c Nullable(Int32), rtp_pcap_path String, @@ -545,6 +546,7 @@ sip_responder_sdp_media_type String, sip_responder_sdp_content String, sip_duration_s Nullable(Int32), sip_bye String, +sip_bye_reason String, rtp_payload_type_c2s Nullable(Int32), rtp_payload_type_s2c Nullable(Int32), rtp_pcap_path String, @@ -792,6 +794,7 @@ sip_responder_sdp_media_type String, sip_responder_sdp_content String, sip_duration_s Nullable(Int32), sip_bye String, +sip_bye_reason String, rtp_payload_type_c2s Nullable(Int32), rtp_payload_type_s2c Nullable(Int32), rtp_pcap_path String, @@ -1040,6 +1043,7 @@ sip_responder_sdp_media_type String, sip_responder_sdp_content String, sip_duration_s Nullable(Int32), sip_bye String, +sip_bye_reason String, rtp_payload_type_c2s Nullable(Int32), rtp_payload_type_s2c Nullable(Int32), rtp_pcap_path String, @@ -1287,6 +1291,7 @@ sip_responder_sdp_media_type String, sip_responder_sdp_content String, sip_duration_s Nullable(Int32), sip_bye String, +sip_bye_reason String, rtp_payload_type_c2s Nullable(Int32), rtp_payload_type_s2c Nullable(Int32), rtp_pcap_path String, @@ -1535,6 +1540,7 @@ sip_responder_sdp_media_type String, sip_responder_sdp_content String, sip_duration_s Nullable(Int32), sip_bye String, +sip_bye_reason String, rtp_payload_type_c2s Nullable(Int32), rtp_payload_type_s2c Nullable(Int32), rtp_pcap_path String, @@ -1661,7 +1667,8 @@ sip_responder_sdp_media_port Nullable(Int32), sip_responder_sdp_media_type String, sip_responder_sdp_content String, sip_duration_s Nullable(Int32), -sip_bye String +sip_bye String, +sip_bye_reason String ) ENGINE = MergeTree PARTITION BY toYYYYMMDD(toDate(recv_time)) @@ -1755,7 +1762,8 @@ sip_responder_sdp_media_port Nullable(Int32), sip_responder_sdp_media_type String, sip_responder_sdp_content String, sip_duration_s Nullable(Int32), -sip_bye String +sip_bye String, +sip_bye_reason String ) ENGINE =Distributed(ck_cluster,tsg_galaxy_v3,transaction_record_local,rand()); @@ -1824,6 +1832,7 @@ sip_responder_sdp_media_type String, sip_responder_sdp_content String, sip_duration_s Nullable(Int32), sip_bye String, +sip_bye_reason String, rtp_payload_type_c2s Nullable(Int32), rtp_payload_type_s2c Nullable(Int32), rtp_pcap_path String, @@ -1896,6 +1905,7 @@ sip_responder_sdp_media_type String, sip_responder_sdp_content String, sip_duration_s Nullable(Int32), sip_bye String, +sip_bye_reason String, rtp_payload_type_c2s Nullable(Int32), rtp_payload_type_s2c Nullable(Int32), rtp_pcap_path String, @@ -2453,6 +2463,7 @@ TO tsg_galaxy_v3.security_event_local sip_responder_sdp_content String, sip_duration_s Nullable(Int32), sip_bye String, + sip_bye_reason String, rtp_payload_type_c2s Nullable(Int32), rtp_payload_type_s2c Nullable(Int32), rtp_pcap_path String, @@ -2698,6 +2709,7 @@ SELECT sip_responder_sdp_content, sip_duration_s, sip_bye, + sip_bye_reason, rtp_payload_type_c2s, rtp_payload_type_s2c, rtp_pcap_path, @@ -2948,6 +2960,7 @@ TO tsg_galaxy_v3.monitor_event_local sip_responder_sdp_content String, sip_duration_s Nullable(Int32), sip_bye String, + sip_bye_reason String, rtp_payload_type_c2s Nullable(Int32), rtp_payload_type_s2c Nullable(Int32), rtp_pcap_path String, @@ -3193,6 +3206,7 @@ SELECT sip_responder_sdp_content, sip_duration_s, sip_bye, + sip_bye_reason, rtp_payload_type_c2s, rtp_payload_type_s2c, rtp_pcap_path, diff --git a/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl_check.sql b/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl_check.sql index e13e871..2bf242c 100644 --- a/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl_check.sql +++ b/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl_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 = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time