Datasets:
File size: 950 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 | 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
|