dicemy's picture
Upload 655 files
e8c001c verified
Raw
History Blame Contribute Delete
885 Bytes
INSERT OVERWRITE TABLE internal_platform_db.dws_rd_feedaggregator_feed_title_quality_di_query_engine_152 PARTITION (ds = '20260608')
WITH tbl AS (
SELECT
feedid,
type_source,
classification,
second_status,
get_json_object(json_buffer_, '$.info.titles') AS titles_info
FROM internal_platform_db.t_eis_feedaggregator2_feedforreddot_check_result_summary_classification_df_query_engine_152
WHERE ds='20260608'
AND regexp_replace(second_update_date, '-', '') = ds
AND second_status in (1, 2)
)
SELECT
feedid,
feedid as feedid_v1,
type_source,
classification,
get_json_object(title_obj, '$.title') AS title,
get_json_object(title_obj, '$.title_type') AS title_type,
get_json_object(title_obj, '$.quality') AS quality,
second_status
FROM tbl
LATERAL VIEW explode(
split(
regexp_replace(
regexp_replace(
titles_info,
'^\\[|\\]$',
''
),
'\\}\\,\\{',
'}\\|\\{'
),
'\\|'
)
) exploded AS title_obj