Commit b744fe3c authored by litaolemo's avatar litaolemo

update

parent deb7e897
...@@ -77,7 +77,7 @@ for t in range(0, task_days): ...@@ -77,7 +77,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 = """ sql_distinct_device_id = """
SELECT count(distinct user_id) FROM tl_hdfs_doctor_view WHERE partition_date = '20200827'""" SELECT count(distinct user_id) FROM online.tl_hdfs_doctor_view WHERE partition_date = '20200827'"""
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,)
distinct_device_id_df.show(1) distinct_device_id_df.show(1)
......
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