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
02515080
Commit
02515080
authored
Jun 19, 2021
by
郭羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个性化push指标 测试
parent
b9d60d2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ctr_push_strategy_test.py
task/ctr_push_strategy_test.py
+6
-4
No files found.
task/ctr_push_strategy_test.py
View file @
02515080
...
...
@@ -78,7 +78,9 @@ def getSql(startDay,endDay):
SELECT partition_day
,push_type
,count(a.device_id)
,count(a.msg_id)
,count(distinct a.device_id)
,count(distinct a.msg_id)
FROM
(
select partition_day
...
...
@@ -89,18 +91,18 @@ def getSql(startDay,endDay):
)a
JOIN
(
select msg_id,push_type
,time_stamp
select msg_id,push_type
from online.tl_hdfs_push2_new_view --增量表
where partition_date=regexp_replace(DATE_SUB(current_date,1) ,'-','')
group by msg_id,push_type
,time_stamp
group by msg_id,push_type
union all
SELECT msg_id,regexp_replace(labels['event'], '
\\
s+', '') AS push_type
,time_stamp
SELECT msg_id,regexp_replace(labels['event'], '
\\
s+', '') AS push_type
FROM online.tl_hdfs_push2_task_view
WHERE partition_date=regexp_replace(DATE_SUB(current_date,1) ,'-','')
AND labels['event_type'] = 'push'
group by msg_id,regexp_replace(labels['event'], '
\\
s+', '')
,time_stamp
group by msg_id,regexp_replace(labels['event'], '
\\
s+', '')
)c
on a.msg_id=c.msg_id
group by partition_day
...
...
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