表结构
CREATE TABLE u2u_0324
(
source_id
bigint(20) NOT NULL COMMENT “”,
target_id
bigint(20) NOT NULL COMMENT “”,
equal_gmt_first
varchar(64) NULL COMMENT “”,
equal_gmt_last
varchar(64) NULL COMMENT “”,
equal_cnt
varchar(64) NULL COMMENT “”,
equal_medium_cnt
varchar(64) NULL COMMENT “”,
equal_days
varchar(64) NULL COMMENT “”,
main_medium
varchar(10240) NULL COMMENT “”,
score_all
double NULL COMMENT “”,
score_a
double NULL COMMENT “”,
score_b
double NULL COMMENT “”,
score_c
double NULL COMMENT “”,
score_d
double NULL COMMENT “”,
score_e
double NULL COMMENT “”,
score_f
double NULL COMMENT “”,
score_g
double NULL COMMENT “”,
score_h
double NULL COMMENT “”,
score_i
double NULL COMMENT “”,
score_j
double NULL COMMENT “”,
equal_event_trace
varchar(64) NULL COMMENT “”,
max_sub_gmt_last
date NULL COMMENT “”,
ds
date NULL COMMENT “”,
score_level
tinyint(4) NULL COMMENT “”,
INDEX idx_max_sub_gmt_last (max_sub_gmt_last
) USING BITMAP,
INDEX idx_source_id (source_id
) USING BITMAP,
INDEX idx_target_id (target_id
) USING BITMAP
) ENGINE=OLAP
DUPLICATE KEY(source_id
, target_id
)
COMMENT “OLAP”
DISTRIBUTED BY HASH(source_id
, target_id
)
PROPERTIES (
“replication_num” = “1”,
“datacache.enable” = “true”,
“storage_volume” = “builtin_storage_volume”,
“enable_async_write_back” = “false”,
“enable_persistent_index” = “false”,
“compression” = “LZ4”
);