Commit d350028c authored by litaolemo's avatar litaolemo

update

parent 47f6e413
......@@ -112,15 +112,15 @@ for t in range(0, task_days):
FROM online.ml_user_history_detail
LATERAL VIEW EXPLODE(device_history_list) v AS device_id
WHERE partition_date = '{yesterday_str}'
)t1
)t2
JOIN
(
SELECT device_id
FROM online.ml_device_history_detail
WHERE partition_date = '{yesterday_str}'
AND is_login_doctor = '1'
)t2
ON t1.device_id = t2.device_id
)t3
ON t2.device_id = t3.device_id
)t3
group by t1.partition_date,t1.device_id""".format(yesterday_str=yesterday_str,today_str=today_str)
print(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