Commit de031d84 authored by 郭羽's avatar 郭羽

个性化push指标 测试

parent 7b088563
......@@ -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__':
......
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