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 ...@@ -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.input.format=org.apache.hadoop.hive.ql.io.CombineHiveInputFormat
set hive.groupby.skewindata=true; 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, select '2017-02-25' as dt,
cid, cid,
...@@ -33,7 +33,7 @@ from ( ...@@ -33,7 +33,7 @@ from (
) y ) y
where top_rank <=100 where top_rank <=100
create EXTERNAL table tkdm_output_user_cluster_top_day( create EXTERNAL table tkdm_output_user_cluster_top_all(
dt string, dt string,
cid int, cid int,
category_id int, category_id int,
...@@ -45,5 +45,5 @@ PARTITIONED BY (ds string) ...@@ -45,5 +45,5 @@ PARTITIONED BY (ds string)
ROW FORMAT DELIMITED ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\t' FIELDS TERMINATED BY '\t'
STORED AS ORC 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