Commit 304a46d0 authored by 郭羽's avatar 郭羽

个性化push指标 测试

parent b2d1307c
......@@ -72,7 +72,7 @@ def getSpark():
return spark
def getSql2(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)
......
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