Commit c9f2648a by mengdongxing

Update tkdm_output_user_cluster_top_day.sql

parent 29666c7f
......@@ -4,7 +4,7 @@ set Mapred.min.split.size.per.rack=256000000
set hive.input.format=org.apache.hadoop.hive.ql.io.CombineHiveInputFormat
set hive.groupby.skewindata=true;
insert overwrite table tkdm.tkdm_output_user_cluster_top_day partition(ds='2017-02-25')
insert overwrite table tkdm.tkdm_output_user_cluster_top_all partition(ds='2017-02-25')
select '2017-02-25' as dt,
cid,
......@@ -33,7 +33,7 @@ from (
) y
where top_rank <=100
create EXTERNAL table tkdm_output_user_cluster_top_day(
create EXTERNAL table tkdm_output_user_cluster_top_all(
dt string,
cid int,
category_id int,
......@@ -45,5 +45,5 @@ PARTITIONED BY (ds string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\t'
STORED AS ORC
location 's3://reyuntkio/warehouse/tkio/tkdm.db/tkdm_output_user_cluster_top_day'
location 's3://reyuntkio/warehouse/tkio/tkdm.db/tkdm_output_user_cluster_top_all'
;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment