Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data
bi-report
Commits
b6814c7f
Commit
b6814c7f
authored
Jun 23, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
e4c41957
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
search_related.sh
shells/search_related/search_related.sh
+3
-3
No files found.
shells/search_related/search_related.sh
View file @
b6814c7f
...
@@ -22,7 +22,7 @@ set hive.auto.convert.join=true;
...
@@ -22,7 +22,7 @@ set hive.auto.convert.join=true;
SET mapred.reduce.tasks=20;
SET mapred.reduce.tasks=20;
SET role admin;
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
SELECT day_id as day_id
,device_os_type as device_os_type
,device_os_type as device_os_type
...
@@ -129,7 +129,7 @@ group by day_id,device_os_type,active_type,v.search_entrance;
...
@@ -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
SELECT partition_date as day_id
,t1.query
,t1.query
...
@@ -214,7 +214,7 @@ SELECT partition_date as day_id
...
@@ -214,7 +214,7 @@ SELECT partition_date as day_id
GROUP BY t1.partition_date,t1.query,t2.input_type;
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
--搜索关键词日报,取近7天数据,每天取关键词搜索量前500
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment