| 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 |