diff --git a/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_LOG_ID/Clickhouse_TSG_建表语句.sql b/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_LOG_ID/Clickhouse_TSG_建表语句.sql index 1d9a3a4..f777a30 100644 --- a/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_LOG_ID/Clickhouse_TSG_建表语句.sql +++ b/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_LOG_ID/Clickhouse_TSG_建表语句.sql @@ -572,8 +572,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record_local ON CLUSTER http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -584,8 +582,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record_local ON CLUSTER http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -667,12 +663,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record_local ON CLUSTER bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -838,8 +828,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_cl http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -850,8 +838,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_cl http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -933,12 +919,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_cl bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -1102,8 +1082,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_qu http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -1114,8 +1092,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_qu http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -1197,12 +1173,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_qu bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -1366,8 +1336,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record_local ON CLUSTER ck_ http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -1378,8 +1346,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record_local ON CLUSTER ck_ http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -1537,8 +1503,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_cluste http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -1549,8 +1513,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_cluste http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -1704,8 +1666,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_query( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -1716,8 +1676,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_query( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -2573,8 +2531,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.security_event_local ON CLUSTER ck_clus http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -2585,8 +2541,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.security_event_local ON CLUSTER ck_clus http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -2668,12 +2622,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.security_event_local ON CLUSTER ck_clus bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -2840,8 +2788,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_cluster ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -2852,8 +2798,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_cluster ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -2935,12 +2879,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_cluster ( bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -3104,8 +3042,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_query ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -3116,8 +3052,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_query ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -3199,12 +3133,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_query ( bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -3369,8 +3297,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.proxy_event_local ON CLUSTER ck_cluster http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -3381,8 +3307,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.proxy_event_local ON CLUSTER ck_cluster http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -3555,8 +3479,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_cluster ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -3567,8 +3489,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_cluster ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -3737,8 +3657,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_query ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -3749,8 +3667,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_query ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -3919,8 +3835,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.session_record_local ON CLUSTER ck_clus http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -3931,8 +3845,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.session_record_local ON CLUSTER ck_clus http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -4014,12 +3926,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.session_record_local ON CLUSTER ck_clus bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -4186,8 +4092,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_cluster ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -4198,8 +4102,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_cluster ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -4281,12 +4183,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_cluster ( bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -4450,8 +4346,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_query ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -4462,8 +4356,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_query ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -4545,12 +4437,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_query ( bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, diff --git a/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_VSYS_ID/Clickhouse_TSG_建表语句.sql b/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_VSYS_ID/Clickhouse_TSG_建表语句.sql index 3c331a0..a420942 100644 --- a/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_VSYS_ID/Clickhouse_TSG_建表语句.sql +++ b/Clickhouse最新全量建表语句/TSG_OLAP_PRIMARY_KEY_VSYS_ID/Clickhouse_TSG_建表语句.sql @@ -569,8 +569,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record_local ON CLUSTER http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -581,8 +579,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record_local ON CLUSTER http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -664,12 +660,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record_local ON CLUSTER bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -834,8 +824,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_cl http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -846,8 +834,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_cl http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -929,12 +915,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_cl bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -1098,8 +1078,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_qu http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -1110,8 +1088,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_qu http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -1193,12 +1169,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_qu bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -1362,8 +1332,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record_local ON CLUSTER ck_ http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -1374,8 +1342,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record_local ON CLUSTER ck_ http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -1532,8 +1498,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_cluste http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -1544,8 +1508,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_cluste http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -1699,8 +1661,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_query( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -1711,8 +1671,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_query( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -2566,8 +2524,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.security_event_local ON CLUSTER ck_clus http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -2578,8 +2534,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.security_event_local ON CLUSTER ck_clus http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -2661,12 +2615,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.security_event_local ON CLUSTER ck_clus bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -2832,8 +2780,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_cluster ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -2844,8 +2790,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_cluster ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -2927,12 +2871,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_cluster ( bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -3096,8 +3034,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_query ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -3108,8 +3044,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_query ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -3191,12 +3125,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_query ( bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -3361,8 +3289,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.proxy_event_local ON CLUSTER ck_cluster http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -3373,8 +3299,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.proxy_event_local ON CLUSTER ck_cluster http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -3546,8 +3470,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_cluster ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -3558,8 +3480,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_cluster ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -3728,8 +3648,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_query ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -3740,8 +3658,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_query ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -3910,8 +3826,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.session_record_local ON CLUSTER ck_clus http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -3922,8 +3836,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.session_record_local ON CLUSTER ck_clus http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -4005,12 +3917,6 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.session_record_local ON CLUSTER ck_clus bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -4176,8 +4082,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_cluster ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -4188,8 +4092,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_cluster ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -4271,12 +4173,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_cluster ( bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, @@ -4440,8 +4336,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_query ( http_response_content String, http_request_body String, http_response_body String, - http_request_body_key String, - http_response_body_key String, http_proxy_flag Int64, http_sequence Int64, http_snapshot String, @@ -4452,8 +4346,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_query ( http_request_content_type String, http_response_content_length String, http_response_content_type String, - http_content_length String, - http_content_type String, http_set_cookie String, http_version String, http_response_latency_ms Int64, @@ -4535,12 +4427,6 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_query ( bgp_type Int64, bgp_as_num String, bgp_route String, - voip_calling_account String, - voip_called_account String, - voip_calling_number String, - voip_called_number String, - streaming_media_url String, - streaming_media_protocol String, app_extra_info String, sip_call_id String, sip_originator_description String, diff --git a/TSG发布版本更新记录/TSG-23.07/clickhouse/update-23.07-ck.sql b/TSG发布版本更新记录/TSG-23.07/clickhouse/update-23.07-ck.sql new file mode 100644 index 0000000..6a0f837 --- /dev/null +++ b/TSG发布版本更新记录/TSG-23.07/clickhouse/update-23.07-ck.sql @@ -0,0 +1,23 @@ +set distributed_ddl_task_timeout = 180; + + +ALTER table tsg_galaxy_v3.session_record_local on cluster ck_cluster drop column IF EXISTS voip_calling_account, drop column IF EXISTS voip_called_account, drop column IF EXISTS voip_calling_number, drop column IF EXISTS voip_called_number, drop column IF EXISTS streaming_media_url, drop column IF EXISTS streaming_media_protocol, drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +ALTER table tsg_galaxy_v3.session_record on cluster ck_cluster drop column IF EXISTS voip_calling_account, drop column IF EXISTS voip_called_account, drop column IF EXISTS voip_calling_number, drop column IF EXISTS voip_called_number, drop column IF EXISTS streaming_media_url, drop column IF EXISTS streaming_media_protocol, drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +ALTER table tsg_galaxy_v3.session_record on cluster ck_query drop column IF EXISTS voip_calling_account, drop column IF EXISTS voip_called_account, drop column IF EXISTS voip_calling_number, drop column IF EXISTS voip_called_number, drop column IF EXISTS streaming_media_url, drop column IF EXISTS streaming_media_protocol, drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; + +ALTER table tsg_galaxy_v3.interim_session_record_local on cluster ck_cluster drop column IF EXISTS voip_calling_account, drop column IF EXISTS voip_called_account, drop column IF EXISTS voip_calling_number, drop column IF EXISTS voip_called_number, drop column IF EXISTS streaming_media_url, drop column IF EXISTS streaming_media_protocol, drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_cluster drop column IF EXISTS voip_calling_account, drop column IF EXISTS voip_called_account, drop column IF EXISTS voip_calling_number, drop column IF EXISTS voip_called_number, drop column IF EXISTS streaming_media_url, drop column IF EXISTS streaming_media_protocol, drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_query drop column IF EXISTS voip_calling_account, drop column IF EXISTS voip_called_account, drop column IF EXISTS voip_calling_number, drop column IF EXISTS voip_called_number, drop column IF EXISTS streaming_media_url, drop column IF EXISTS streaming_media_protocol, drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; + +ALTER table tsg_galaxy_v3.security_event_local on cluster ck_cluster drop column IF EXISTS voip_calling_account, drop column IF EXISTS voip_called_account, drop column IF EXISTS voip_calling_number, drop column IF EXISTS voip_called_number, drop column IF EXISTS streaming_media_url, drop column IF EXISTS streaming_media_protocol, drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +ALTER table tsg_galaxy_v3.security_event on cluster ck_cluster drop column IF EXISTS voip_calling_account, drop column IF EXISTS voip_called_account, drop column IF EXISTS voip_calling_number, drop column IF EXISTS voip_called_number, drop column IF EXISTS streaming_media_url, drop column IF EXISTS streaming_media_protocol, drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +ALTER table tsg_galaxy_v3.security_event on cluster ck_query drop column IF EXISTS voip_calling_account, drop column IF EXISTS voip_called_account, drop column IF EXISTS voip_calling_number, drop column IF EXISTS voip_called_number, drop column IF EXISTS streaming_media_url, drop column IF EXISTS streaming_media_protocol, drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; + +ALTER table tsg_galaxy_v3.proxy_event_local on cluster ck_cluster drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +ALTER table tsg_galaxy_v3.proxy_event on cluster ck_cluster drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +ALTER table tsg_galaxy_v3.proxy_event on cluster ck_query drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; + +ALTER table tsg_galaxy_v3.transaction_record_local on cluster ck_cluster drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +ALTER table tsg_galaxy_v3.transaction_record on cluster ck_cluster drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +ALTER table tsg_galaxy_v3.transaction_record on cluster ck_query drop column IF EXISTS http_request_body_key, drop column IF EXISTS http_response_body_key, drop column IF EXISTS http_content_length, drop column IF EXISTS http_content_type; +