修正23.06实体关系建表语句
This commit is contained in:
@@ -1709,7 +1709,7 @@ CREATE TABLE IF NOT EXISTS cyber_narrator_galaxy.metric_dns_rr_cname ON CLUSTER
|
|||||||
) ENGINE = Distributed('ck_cluster', 'cyber_narrator_galaxy', 'metric_dns_rr_cname_local', rand());
|
) ENGINE = Distributed('ck_cluster', 'cyber_narrator_galaxy', 'metric_dns_rr_cname_local', rand());
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE cyber_narrator_galaxy.cn_entity_relation_local on cluster ck_cluster
|
CREATE TABLE if not exists cyber_narrator_galaxy.cn_entity_relation_local on cluster ck_cluster
|
||||||
(
|
(
|
||||||
app_name String,
|
app_name String,
|
||||||
fqdn String,
|
fqdn String,
|
||||||
@@ -1722,10 +1722,9 @@ CREATE TABLE IF NOT EXISTS cyber_narrator_galaxy.metric_dns_rr_cname ON CLUSTER
|
|||||||
update_time Int64
|
update_time Int64
|
||||||
)
|
)
|
||||||
ENGINE = MergeTree
|
ENGINE = MergeTree
|
||||||
ORDER BY (common_server_ip,
|
ORDER BY (ip,
|
||||||
common_server_port,
|
fqdn,
|
||||||
common_app_label,
|
app_name)
|
||||||
domain)
|
|
||||||
TTL toDateTime(update_time) + toIntervalSecond(2592000),
|
TTL toDateTime(update_time) + toIntervalSecond(2592000),
|
||||||
toDateTime(update_time) + toIntervalSecond(1) GROUP BY ip,
|
toDateTime(update_time) + toIntervalSecond(1) GROUP BY ip,
|
||||||
fqdn,
|
fqdn,
|
||||||
@@ -1770,7 +1769,7 @@ ENGINE = Distributed('ck_cluster',
|
|||||||
rand());
|
rand());
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE cyber_narrator_galaxy.cn_dynamic_info_relation_local on cluster ck_cluster
|
CREATE TABLE if not exists cyber_narrator_galaxy.cn_dynamic_info_relation_local on cluster ck_cluster
|
||||||
(
|
(
|
||||||
ip String,
|
ip String,
|
||||||
l7_protocol String,
|
l7_protocol String,
|
||||||
|
|||||||
Reference in New Issue
Block a user