Commit fc0db678 authored by mxx's avatar mxx

1

parent 62f80b41
......@@ -76,7 +76,7 @@ sql_ctr_roc = '''select ctr_label,pre_ctr,
'''.format(dt)
sql_cvr_roc = '''select cvr_label,pre_cvr,
sql_cvr_roc = '''select is_target_convert,pre_cvr,
CASE
WHEN rcmd_type=217 THEN 'alg-4.0'
WHEN rcmd_type=25 THEN 'alg-4.0.1'
......@@ -129,12 +129,8 @@ sql_cvr_roc = '''select cvr_label,pre_cvr,
END AS rcmd_name
from
(select * from advert.dws_advert_order_wide_v4_level_6_di
(select * from advert.dws_advert_order_wide_v5_level_2_di
where dt='{}' and charge_cnt>0 and ctr_label=1) a
left outer join
tmp.tmp_act_advert_v4_df b on a.advert_id =b.advert_id
where b.advert_id is not null
and pre_cvr is not null
'''.format(dt)
cursor.execute(sql_ctr_roc)
......
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