Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
meta_base_code
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
宋柯
meta_base_code
Commits
5551d4d4
Commit
5551d4d4
authored
Jun 09, 2021
by
郭羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索指标统计
parent
f3ed34df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
search_tractate_ctr.py
task/search_tractate_ctr.py
+2
-4
No files found.
task/search_tractate_ctr.py
View file @
5551d4d4
...
@@ -100,7 +100,7 @@ for t in range(0, task_days):
...
@@ -100,7 +100,7 @@ for t in range(0, task_days):
SELECT partition_day,
SELECT partition_day,
device_id,
device_id,
count(CASE WHEN card_content_type='service' THEN 1 END) as service_exp_pv,
count(CASE WHEN card_content_type='service' THEN 1 END) as service_exp_pv,
count(CASE WHEN card_content_type
<>'service
' THEN 1 END) as neirong_exp_pv
count(CASE WHEN card_content_type
='user_post
' THEN 1 END) as neirong_exp_pv
FROM
FROM
(
(
SELECT device_id,partition_day,card_content_type
SELECT device_id,partition_day,card_content_type
...
@@ -109,9 +109,7 @@ for t in range(0, task_days):
...
@@ -109,9 +109,7 @@ for t in range(0, task_days):
and partition_day < '{end_date}'
and partition_day < '{end_date}'
and action in ('page_precise_exposure','home_choiceness_card_exposure')
and action in ('page_precise_exposure','home_choiceness_card_exposure')
and is_exposure = '1'
and is_exposure = '1'
and page_code in ('search_result_diary','search_result_doctor','search_result_hospital','search_result_more'
and page_code in ('search_result_post')
,'search_result_more_infomation','search_result_more_user','search_result_post','search_result_welfare'
,'search_result_wiki','search_result_question_answer')
AND (card_content_type IN ('user_post') or card_type = 'user_post')
AND (card_content_type IN ('user_post') or card_type = 'user_post')
)a
)a
group by partition_day,card_content_type,device_id
group by partition_day,card_content_type,device_id
...
...
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