(select first_device as device_id from online.ml_user_history_detail where partition_date = '{today_str}' and date_joined >= '{yesterday_str_format}' and date_joined <= '{today_str_format}') t2
(select first_device as device_id from online.ml_user_history_detail where partition_date = '{today_str}' and date_joined >= '{yesterday_str_format}' and date_joined <= '{today_str_format}') t2
LEFT JOIN
LEFT JOIN
(
(
...
@@ -179,6 +179,7 @@ WHERE spam_pv.device_id IS NULL
...
@@ -179,6 +179,7 @@ WHERE spam_pv.device_id IS NULL
forcount,resinenumerate(sql_res):
forcount,resinenumerate(sql_res):
print(count,res)
print(count,res)
res_dict={}
maidian_sql="""select t1.device_id,t2.track from
maidian_sql="""select t1.device_id,t2.track from
(select device_id from device_id_view)t1
(select device_id from device_id_view)t1
left join
left join
...
@@ -193,4 +194,12 @@ on t1.device_id = t2.cl_id""".format(partition_date=yesterday_str)
...
@@ -193,4 +194,12 @@ on t1.device_id = t2.cl_id""".format(partition_date=yesterday_str)