Commit 35380ad9 authored by litaolemo's avatar litaolemo

update

parent 9410687e
......@@ -133,14 +133,12 @@ for t in range(1, task_days):
,'promotion_qianka','promotion_xiaoyu','promotion_dianru','promotion_malioaso','promotion_malioaso-shequ'
,'promotion_shike','promotion_julang_jl03','promotion_zuimei')
AND first_channel_source_type not LIKE 'promotion\_jf\_%'
)t1
JOIN
)t1 JOIN
( SELECT partition_date,
cl_id,
count(card_id) as session_pv0
FROM
(
SELECT partition_date,
(SELECT partition_date,
cl_id,
case when card_content_type in ('qa','answer') then 'qa'
when card_content_type in ('special_pool') then 'special' else card_content_type end as card_content_type,
......@@ -193,8 +191,8 @@ for t in range(1, task_days):
)a
LATERAL VIEW explode (a.recommend_type) v as recommend_type
group by partition_date,cl_id,v.recommend_type having session_pv0 >= 4) t0
on on t1.device_id = t0.cl_id
left join
on t1.device_id = t0.cl_id
LEFT JOIN
(--精准曝光,卡片id和session_id去重
SELECT partition_date,
card_content_type,
......
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