Commit 518d3d79 authored by litaolemo's avatar litaolemo

update

parent 2e43c697
...@@ -72,7 +72,7 @@ for t in range(0, task_days): ...@@ -72,7 +72,7 @@ for t in range(0, task_days):
yesterday_str = (now + datetime.timedelta(days=-1)).strftime("%Y%m%d") yesterday_str = (now + datetime.timedelta(days=-1)).strftime("%Y%m%d")
one_week_age_str = (now + datetime.timedelta(days=-7)).strftime("%Y%m%d") one_week_age_str = (now + datetime.timedelta(days=-7)).strftime("%Y%m%d")
sql_distinct_device_id = r""" sql_distinct_device_id = r"""
SELECT * FROM dim.dim_device_user_staff WHERE partition_date = '20200827' SELECT * FROM dim.dim_device_user_staff
""" """
print(sql_distinct_device_id) print(sql_distinct_device_id)
distinct_device_id_df = spark.sql(sql_distinct_device_id,) distinct_device_id_df = spark.sql(sql_distinct_device_id,)
......
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