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
7b088563
Commit
7b088563
authored
Jun 19, 2021
by
郭羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个性化push指标 测试
parent
4822274a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
ctr_push_strategy_test.py
task/ctr_push_strategy_test.py
+12
-1
No files found.
task/ctr_push_strategy_test.py
View file @
7b088563
...
...
@@ -72,7 +72,7 @@ def getSpark():
return
spark
def
getSql
(
startDay
,
endDay
):
def
getSql
2
(
startDay
,
endDay
):
sql
=
"""
--push接收数据
SELECT partition_day
...
...
@@ -108,6 +108,17 @@ def getSql(startDay,endDay):
where push_type in ('101','102')
group by partition_day
,push_type
"""
return
sql
def
getSql
(
startDay
,
endDay
):
sql
=
"""
--push接收数据
select partition_day,event_type,count(*)
from bl.bl_et_bg_trackingpushlog_inc_d
where partition_day=regexp_replace(DATE_SUB(current_date,1) ,'-','')
group by partition_day,event_type
"""
return
sql
...
...
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