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