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
304a46d0
Commit
304a46d0
authored
Jun 19, 2021
by
郭羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个性化push指标 测试
parent
b2d1307c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
ctr_push_strategy_test.py
task/ctr_push_strategy_test.py
+1
-23
No files found.
task/ctr_push_strategy_test.py
View file @
304a46d0
...
...
@@ -72,7 +72,7 @@ def getSpark():
return
spark
def
getSql
2
(
startDay
,
endDay
):
def
getSql
(
startDay
,
endDay
):
sql
=
"""
--push接收数据
SELECT partition_day
...
...
@@ -112,28 +112,6 @@ def getSql2(startDay, endDay):
"""
return
sql
def
getSql
(
startDay
,
endDay
):
sql
=
"""
--push接收数据
select *
from bl.bl_et_bg_trackingpushlog_inc_d
where partition_day=regexp_replace(DATE_SUB(current_date,1) ,'-','')
limit 100
"""
# 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
if
__name__
==
'__main__'
:
if
len
(
sys
.
argv
)
<
2
:
print
(
'请输入day'
,
flush
=
True
)
...
...
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