TSG CK 22.12新增common_flags字段

This commit is contained in:
houjinchuan
2022-12-02 16:26:30 +08:00
parent 0904bad769
commit cd84ed312e
2 changed files with 64 additions and 0 deletions

View File

@@ -194,6 +194,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.gtpc_record_local ON CLUSTER ck_cluster
common_schema_type String,
common_vsys_id Int64 DEFAULT 1,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -300,6 +301,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.gtpc_record ON CLUSTER ck_cluster(
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -401,6 +403,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.gtpc_record ON CLUSTER ck_query(
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -503,6 +506,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record_local ON CLUSTER
common_schema_type LowCardinality(String),
common_vsys_id Int64 DEFAULT 1,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -759,6 +763,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record_local ON CLUSTER ck_
common_schema_type LowCardinality(String),
common_vsys_id Int64 DEFAULT 1,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -920,6 +925,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_qu
common_schema_type LowCardinality(String),
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -1172,6 +1178,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_cl
common_schema_type LowCardinality(String),
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -1425,6 +1432,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_query(
common_schema_type LowCardinality(String),
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -1580,6 +1588,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_cluste
common_schema_type LowCardinality(String),
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -1738,6 +1747,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.voip_record_local ON CLUSTER ck_cluster
common_schema_type String,
common_vsys_id Int64 DEFAULT 1,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -1850,6 +1860,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.voip_record ON CLUSTER ck_query(
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -1960,6 +1971,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.voip_record ON CLUSTER ck_cluster(
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -2070,6 +2082,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.sys_packet_capture_event_local ON CLUST
common_schema_type String,
common_vsys_id Int64 DEFAULT 1,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -2171,6 +2184,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.security_event_local ON CLUSTER ck_clus
common_schema_type String,
common_vsys_id Int64 DEFAULT 1,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -2426,6 +2440,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.proxy_event_local ON CLUSTER ck_cluster
common_schema_type String,
common_vsys_id Int64 DEFAULT 1,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -2595,6 +2610,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.session_record_local ON CLUSTER ck_clus
common_schema_type LowCardinality(String),
common_vsys_id Int64 DEFAULT 1,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -2850,6 +2866,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.radius_record_local ON CLUSTER ck_clust
common_schema_type String,
common_vsys_id Int64 DEFAULT 1,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -3056,6 +3073,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.radius_record ON CLUSTER ck_query (
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -3175,6 +3193,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_query (
common_schema_type LowCardinality(String),
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -3427,6 +3446,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_query (
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -3592,6 +3612,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_query (
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -3844,6 +3865,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.sys_packet_capture_event ON CLUSTER ck_
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -3954,6 +3976,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.radius_record ON CLUSTER ck_cluster (
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -4073,6 +4096,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_cluster (
common_schema_type LowCardinality(String),
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -4325,6 +4349,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_cluster (
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -4490,6 +4515,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_cluster (
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,
@@ -4742,6 +4768,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.sys_packet_capture_event ON CLUSTER ck_
common_schema_type String,
common_vsys_id Int64,
common_t_vsys_id Int64,
common_flags UInt64,
common_device_tag String,
common_encapsulation Int64,
common_tunnels String,

View File

@@ -0,0 +1,37 @@
set distributed_ddl_task_timeout = 180;
ALTER table tsg_galaxy_v3.session_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.session_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.session_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.interim_session_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.transaction_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.transaction_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.transaction_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.security_event_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.security_event on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.security_event on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.proxy_event_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.proxy_event on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.proxy_event on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.radius_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.radius_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.radius_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.voip_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.voip_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.voip_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.gtpc_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.gtpc_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.gtpc_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.sys_packet_capture_event_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.sys_packet_capture_event on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;
ALTER table tsg_galaxy_v3.sys_packet_capture_event on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id;