Commit 4a4424f5 authored by litaolemo's avatar litaolemo

update

parent b34101ba
...@@ -114,7 +114,7 @@ for t in range(0, task_days): ...@@ -114,7 +114,7 @@ for t in range(0, task_days):
)t3 )t3
on t1.user_id=t3.user_id group by partition_date,device_id on t1.user_id=t3.user_id group by partition_date,device_id
""".format(today_str=today_str, yesterday_str=yesterday_str ) """.format(today_str=today_str, yesterday_str=yesterday_str )
print(sql) 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)
sql_res = distinct_device_id_df.collect() sql_res = distinct_device_id_df.collect()
......
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