and action in ('page_precise_exposure','home_choiceness_card_exposure')
and action in ('page_precise_exposure','home_choiceness_card_exposure')
and is_exposure = '1'
and is_exposure = '1'
and page_code in ('search_result_post')
and page_code in ('search_result_post','search_result_diary')
AND (card_content_type IN ('user_post') or card_type = 'user_post')
AND (card_content_type IN ('user_post','doctor_post') or card_type in ('user_post','doctor_post'))
)a
)a
group by partition_day,card_content_type,device_id
group by partition_day,card_content_type,device_id
)t1
)t1
...
@@ -138,8 +138,8 @@ for t in range(0, task_days):
...
@@ -138,8 +138,8 @@ for t in range(0, task_days):
WHERE partition_date >= '{partition_day}'
WHERE partition_date >= '{partition_day}'
AND partition_date < '{end_date}'
AND partition_date < '{end_date}'
AND ((action in ('on_click_topic_card','on_click_diary_card','search_result_click_infomation_item')
AND ((action in ('on_click_topic_card','on_click_diary_card','search_result_click_infomation_item')
AND page_name in ('search_result_post'))
AND page_name in ('search_result_post','search_result_diary'))
or (action = 'on_click_card' AND params['card_content_type'] in ('user_post') AND page_name in ('search_result_post')))
or (action = 'on_click_card' AND params['card_content_type'] in ('user_post','doctor_post') AND page_name in ('search_result_post','search_result_diary')))