Datasets:
File size: 1,082 Bytes
e8c001c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | INSERT OVERWRITE TABLE internal_platform_db.ads_mq_topic_governance_item_d_query_engine_013 PARTITION (dt = '20260507')
SELECT
business_id,
business_name,
topic,
cluster_set,
IF ( tenant IS NOT NULL AND namespaces IS NOT NULL, CONCAT( 'persistent://', tenant, '/', namespaces, '/', topic ), topic ) AS mq_full_topic,
system_belong,
dw_appgroup AS app_group,
in_charge AS bid_incharge,
description AS bid_description,
create_time AS bid_create_time,
modify_time AS bid_modify_time,
cluster_id,
cluster_type,
cluster_name,
bg,
category_name,
total_produce_pkg_d,
production_days_last_7d,
total_produce_pkg_last_7d,
production_days_last_30d,
total_produce_pkg_last_30d,
production_days_last_90d,
total_produce_pkg_last_90d,
is_consumed,
has_consumption_days_last_7d,
has_consumption_days_last_30d,
has_consumption_days_last_90d,
NULL AS hitted_gov_items,
NULL AS governance_benefit_estimate
FROM internal_platform_db.dws_mq_production_feature_d_increase_query_engine_013
WHERE dt = '20260507'
AND total_produce_pkg_last_90d > 0 |