Datasets:
File size: 885 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 35 36 37 | 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 |