Commit 7b088563 authored by 郭羽's avatar 郭羽

个性化push指标 测试

parent 4822274a
......@@ -72,7 +72,7 @@ def getSpark():
return spark
def getSql(startDay,endDay):
def getSql2(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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment