CREATE DATABASE IF NOT EXISTS internal_platform_db; CREATE TABLE internal_platform_db.t_eis_feedaggregator2_feedforreddot_check_result_summary_classification_df_query_engine_152 ( `ds` BIGINT COMMENT 'NoComment', `create_date` STRING COMMENT 'NoComment', `feedid` STRING COMMENT 'NoComment', `first_status` BIGINT COMMENT 'NoComment', `first_update_time` STRING COMMENT 'NoComment', `first_update_date` STRING COMMENT 'NoComment', `second_status` BIGINT COMMENT 'NoComment', `second_update_time` STRING COMMENT 'NoComment', `second_update_date` STRING COMMENT 'NoComment', `third_status` BIGINT COMMENT 'NoComment', `third_update_time` STRING COMMENT 'NoComment', `third_update_date` STRING COMMENT 'NoComment', `source_from` STRING COMMENT 'NoComment', `end_time` STRING COMMENT 'NoComment', `end_date` STRING COMMENT 'NoComment', `title` STRING COMMENT 'NoComment', `json_buffer_` STRING COMMENT 'NoComment', `createtime` STRING COMMENT 'NoComment', `tag_class_level1` STRING COMMENT 'NoComment', `tag_class_level2` STRING COMMENT 'NoComment', `is_local` BIGINT COMMENT 'NoComment', `type_source` BIGINT COMMENT 'NoComment', `cityname` STRING COMMENT 'NoComment', `orient_type` STRING COMMENT 'NoComment', `cancel_reason` STRING COMMENT 'NoComment', `status_class` STRING COMMENT 'NoComment', `queue_name` STRING COMMENT 'NoComment', `queue_out_name` STRING COMMENT 'NoComment', `second_processor` STRING COMMENT 'NoComment', `head_img_not_display` STRING COMMENT 'NoComment', `review_status` BIGINT COMMENT 'NoComment', `review_first_status` BIGINT COMMENT 'NoComment', `review_first_update_time` STRING COMMENT 'NoComment', `review_first_update_date` STRING COMMENT 'NoComment', `review_first_processor` STRING COMMENT 'NoComment', `reviedept_second_status` BIGINT COMMENT 'NoComment', `reviedept_second_update_time` STRING COMMENT 'NoComment', `reviedept_second_update_date` STRING COMMENT 'NoComment', `reviedept_second_processor` STRING COMMENT 'NoComment', `review_third_status` BIGINT COMMENT 'NoComment', `review_third_update_time` STRING COMMENT 'NoComment', `review_third_update_date` STRING COMMENT 'NoComment', `force_status` BIGINT COMMENT 'NoComment', `allow_show` STRING COMMENT 'NoComment', `filter_type1` BIGINT COMMENT 'NoComment', `filter_type2` BIGINT COMMENT 'NoComment', `head_img_url` STRING COMMENT 'NoComment', `cover_img_not_display` BIGINT COMMENT 'NoComment', `cover_img_url` STRING COMMENT 'NoComment', `review_status_class` STRING COMMENT 'NoComment', `auto_title_type` BIGINT COMMENT 'NoComment', `audit_create_source` STRING COMMENT 'NoComment', `videoplaylen` BIGINT COMMENT 'NoComment', `is_break` BIGINT COMMENT 'NoComment', `area_code` STRING COMMENT 'NoComment', `area_code_snapshot` STRING COMMENT 'NoComment', `classification` STRING COMMENT 'NoComment', `video_quality` STRING COMMENT 'NoComment', `video_size_type` STRING COMMENT 'NoComment' ) STORED AS ORC; INSERT INTO TABLE internal_platform_db.t_eis_feedaggregator2_feedforreddot_check_result_summary_classification_df_query_engine_152 VALUES (20260608, '2026-06-01', 'feed001', 1, '2026-06-05 10:00:00', '2026-06-05', 1, '2026-06-08 12:00:00', '2026-06-08', 0, '', '', 'src1', '', '', 'test title 1', '{"info":{"titles":"[{\\"title\\":\\"Hello World\\",\\"title_type\\":\\"ocr\\",\\"quality\\":\\"high\\"},{\\"title\\":\\"Second Title\\",\\"title_type\\":\\"asr\\",\\"quality\\":\\"medium\\"}]"}}', '2026-06-01 08:00:00', 'tag1', 'tag2', 0, 1, 'city1', 'orient1', '', 'cls1', 'q1', 'q2', 'proc1', 'N', 0, 0, '', '', '', 0, '', '', '', 0, '', '', 0, 'Y', 0, 0, '', 0, '', '', 0, '', 0, 0, '', '', 'classA', '', ''), (20260608, '2026-06-02', 'feed002', 1, '2026-06-06 10:00:00', '2026-06-06', 2, '2026-06-08 14:00:00', '2026-06-08', 0, '', '', 'src2', '', '', 'test title 2', '{"info":{"titles":"[{\\"title\\":\\"Good Morning\\",\\"title_type\\":\\"manual\\",\\"quality\\":\\"low\\"}]"}}', '2026-06-02 08:00:00', 'tag3', 'tag4', 1, 2, 'city2', 'orient2', '', 'cls2', 'q3', 'q4', 'proc2', 'Y', 1, 1, '', '', '', 1, '', '', '', 1, '', '', 1, 'N', 1, 1, '', 1, '', '', 1, '', 1, 1, '', '', 'classB', '', ''), (20260608, '2026-06-03', 'feed003', 1, '2026-06-07 10:00:00', '2026-06-07', 3, '2026-06-08 16:00:00', '2026-06-08', 0, '', '', 'src3', '', '', 'test title 3', '{"info":{"titles":"[{\\"title\\":\\"Skipped\\",\\"title_type\\":\\"ocr\\",\\"quality\\":\\"high\\"}]"}}', '2026-06-03 08:00:00', 'tag5', 'tag6', 0, 3, 'city3', 'orient3', '', 'cls3', 'q5', 'q6', 'proc3', 'N', 0, 0, '', '', '', 0, '', '', '', 0, '', '', 0, 'Y', 0, 0, '', 0, '', '', 0, '', 0, 0, '', '', 'classC', '', ''); CREATE TABLE internal_platform_db.dws_rd_feedaggregator_feed_title_quality_di_query_engine_152 ( `feedid` STRING, `feedid_v1` STRING, `type_source` BIGINT, `classification` STRING, `title` STRING, `title_type` STRING, `quality` STRING, `second_status` BIGINT ) PARTITIONED BY (ds STRING) STORED AS ORC; -- Candidate table (agent writes here) CREATE TABLE internal_platform_db.dws_rd_feedaggregator_feed_title_quality_di_cand_query_engine_152 ( `feedid` STRING, `feedid_v1` STRING, `type_source` BIGINT, `classification` STRING, `title` STRING, `title_type` STRING, `quality` STRING, `second_status` BIGINT ) PARTITIONED BY (ds STRING) STORED AS ORC;