CREATE DATABASE IF NOT EXISTS internal_platform_db; CREATE TABLE IF NOT EXISTS internal_platform_db.log_17047_query_engine_102 ( day_ STRING, hour_ STRING, timestamp_ BIGINT, appname_ STRING, user_id_ BIGINT, uinhighquality_ BIGINT, uinlastunbantime_ BIGINT, opentime_ BIGINT, friendnum_ BIGINT, content_ STRING, headmd5_ STRING, uinregcountry_ STRING, touinregcountry_ STRING, commfrinum_ BIGINT, clientversion_ BIGINT, scene_ BIGINT, ticketscene_ BIGINT, uinipcountryid_ BIGINT, uinipprovinceid_ BIGINT ) STORED AS ORC; INSERT INTO TABLE internal_platform_db.log_17047_query_engine_102 VALUES ('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1001,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1002,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1003,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1004,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1005,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1006,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1007,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1008,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1009,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1010,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1011,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1012,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1013,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1014,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1015,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1016,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1017,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1018,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1019,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1020,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_hello_txt',1021,0,0,1700000000,5,'hello','headmd5_abc','CN','CN',0,800,1,100,86,440000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2001,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2002,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2003,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2004,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2005,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2006,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2007,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2008,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2009,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2010,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2011,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2012,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2013,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2014,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2015,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2016,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2017,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2018,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2019,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2020,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_add_contact',2021,0,0,1700000000,5,'hi','headmd5_def','CN','CN',0,900,2,200,86,110000),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3001,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3002,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3003,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3004,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3005,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3006,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3007,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3008,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3009,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3010,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3011,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3012,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3013,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3014,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3015,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3016,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3017,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3018,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3019,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3020,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0),('2026-06-09 00:00:00','2026-06-09 00:00:00',1780963200,'app_contact_verify_ok',3021,0,0,1700000000,5,'verify','headmd5_ghi','CN','CN',0,800,3,300,852,0); CREATE TABLE IF NOT EXISTS internal_platform_db.t_acct_addfri_action_cluster_minutely_query_engine_102 ( appname_ STRING, clientversion_ BIGINT, scene_ BIGINT, ticketscene_ BIGINT, headmd5_ STRING, uinipcountryid_ BIGINT, uinipprovinceid_ BIGINT, addfri_pv BIGINT, user_id_cnt BIGINT, low_quality_cnt BIGINT, low_quality_rate DOUBLE, user_id_list STRING, hello_content_list STRING, evil_cnt BIGINT, evil_rate DOUBLE ) PARTITIONED BY (ds STRING) STORED AS ORC; -- Agent 候选目标表 CREATE TABLE IF NOT EXISTS internal_platform_db.t_acct_addfri_action_cluster_minutely_cand_query_engine_102 ( appname_ STRING, clientversion_ BIGINT, scene_ BIGINT, ticketscene_ BIGINT, headmd5_ STRING, uinipcountryid_ BIGINT, uinipprovinceid_ BIGINT, addfri_pv BIGINT, user_id_cnt BIGINT, low_quality_cnt BIGINT, low_quality_rate DOUBLE, user_id_list STRING, hello_content_list STRING, evil_cnt BIGINT, evil_rate DOUBLE ) PARTITIONED BY (ds STRING) STORED AS ORC;