dicemy's picture
Upload 655 files
e8c001c verified
Raw
History Blame Contribute Delete
950 Bytes
INSERT OVERWRITE TABLE internal_platform_db.dwd_hot_metadata_table_prestosql_005
SELECT
'20260507' AS dt,
db_name,
table_name,
MAX(owner) AS owner,
MAX(storage_detail) AS storage_detail,
MAX(heat) AS heat,
MAX(task_cnt) AS task_cnt,
MAX(table_type) AS table_type,
MAX(govern_status) AS govern_status,
MAX(last_access_time) AS last_access_time,
MAX(table_comment) AS table_comment,
MAX(partition_cnt) AS partition_cnt,
MAX(file_format) AS file_format,
MAX(table_size) AS table_size,
MAX(avg_file_size) AS avg_file_size,
MAX(is_partitioned) AS is_partitioned,
MAX(lifecycle_days) AS lifecycle_days,
MAX(create_time) AS create_time,
MAX(modify_time) AS modify_time,
MAX(project_name) AS project_name
FROM internal_platform_db.ads_gov_cost_table_govern_detail_df_prestosql_005
WHERE imp_date = 20260507
AND heat > 0
AND table_name NOT LIKE '%temp%'
AND db_name NOT LIKE '%test%'
GROUP BY db_name, table_name