dicemy's picture
Upload 655 files
e8c001c verified
Raw
History Blame Contribute Delete
1.83 kB
CREATE DATABASE IF NOT EXISTS internal_platform_db;
CREATE TABLE IF NOT EXISTS internal_platform_db.dwd_relationship_strength_features_v4_di_query_engine_138 (
uin BIGINT COMMENT 'IM平台Q',
touin BIGINT COMMENT 'touin IM平台Q',
c2c_score DOUBLE,
c2c_cnt_score DOUBLE,
socialzone_visit_score DOUBLE,
socialzone_like_score DOUBLE,
socialzone_comment_score DOUBLE,
profile_view_score DOUBLE,
profile_like_score DOUBLE,
active_layer_score DOUBLE,
frd_tag_num BIGINT,
common_frd_num BIGINT,
touser_id_active_layer BIGINT,
is_same_city BIGINT,
age_diff BIGINT,
is_focus_frd BIGINT,
comsg_score DOUBLE
) PARTITIONED BY (imp_date BIGINT) STORED AS ORC;
INSERT INTO TABLE internal_platform_db.dwd_relationship_strength_features_v4_di_query_engine_138 PARTITION (imp_date=20260608)
VALUES
(10001, 10002, 0.8, 5.0, 0.6, 0.3, 0.2, 0.5, 0.4, 0.7, 3, 5, 2, 1, 5, 0, 0.6),
(10003, 10004, 0.5, 3.0, 0.4, 0.2, 0.1, 0.3, 0.2, 0.5, 2, 3, 1, 0, 10, 1, 0.4),
(10005, 9999, 0.9, 8.0, 0.7, 0.5, 0.4, 0.6, 0.5, 0.8, 4, 7, 3, 1, 3, 1, 0.7),
(9999, 10006, 0.3, 1.0, 0.2, 0.1, 0.05, 0.1, 0.1, 0.3, 1, 1, 1, 0, 20, 0, 0.2),
(10007, 10008, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 50, 0, 0.0),
(10009, 10010, 1.0, 10.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 10, 20, 5, 1, 1, 1, 1.0);
CREATE TABLE IF NOT EXISTS internal_platform_db.ads_qq_sq_frd_recommendation_result_list_df_query_engine_138 (
uin BIGINT,
touin BIGINT,
score DOUBLE,
raw_score DOUBLE
) PARTITIONED BY (imp_date BIGINT) STORED AS ORC;
-- Agent 候选目标表
CREATE TABLE IF NOT EXISTS internal_platform_db.ads_qq_sq_frd_recommendation_result_list_df_cand_query_engine_138 (
uin BIGINT,
touin BIGINT,
score DOUBLE,
raw_score DOUBLE
) PARTITIONED BY (imp_date BIGINT) STORED AS ORC;