Commit b6814c7f authored by 魏艺敏's avatar 魏艺敏

update codes

parent e4c41957
......@@ -22,7 +22,7 @@ set hive.auto.convert.join=true;
SET mapred.reduce.tasks=20;
SET role admin;
INSERT OVERWRITE TABLE pm.tl_pm_search_click_path_d PARTITION (PARTITION_DAY = #partition_day)
INSERT OVERWRITE TABLE pm.tl_pm_search_click_path_d PARTITION (PARTITION_DAY = $partition_day)
SELECT day_id as day_id
,device_os_type as device_os_type
......@@ -129,7 +129,7 @@ group by day_id,device_os_type,active_type,v.search_entrance;
INSERT OVERWRITE TABLE pm.tl_pm_search_input_type_d PARTITION (PARTITION_DAY = #partition_day)
INSERT OVERWRITE TABLE pm.tl_pm_search_input_type_d PARTITION (PARTITION_DAY = $partition_day)
SELECT partition_date as day_id
,t1.query
......@@ -214,7 +214,7 @@ SELECT partition_date as day_id
GROUP BY t1.partition_date,t1.query,t2.input_type;
INSERT OVERWRITE TABLE pm.tl_pm_search_result_click_rate_d PARTITION (PARTITION_DAY = #partition_day)
INSERT OVERWRITE TABLE pm.tl_pm_search_result_click_rate_d PARTITION (PARTITION_DAY = $partition_day)
--搜索关键词日报,取近7天数据,每天取关键词搜索量前500
......
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