Commit e1604635 authored by 郭羽's avatar 郭羽

搜索指标统计

parent 5551d4d4
......@@ -109,8 +109,8 @@ for t in range(0, task_days):
and partition_day < '{end_date}'
and action in ('page_precise_exposure','home_choiceness_card_exposure')
and is_exposure = '1'
and page_code in ('search_result_post')
AND (card_content_type IN ('user_post') or card_type = 'user_post')
and page_code in ('search_result_post','search_result_diary')
AND (card_content_type IN ('user_post','doctor_post') or card_type in ('user_post','doctor_post'))
)a
group by partition_day,card_content_type,device_id
)t1
......@@ -138,8 +138,8 @@ for t in range(0, task_days):
WHERE partition_date >= '{partition_day}'
AND partition_date < '{end_date}'
AND ((action in ('on_click_topic_card','on_click_diary_card','search_result_click_infomation_item')
AND page_name in ('search_result_post'))
or (action = 'on_click_card' AND params['card_content_type'] in ('user_post') 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','doctor_post') AND page_name in ('search_result_post','search_result_diary')))
GROUP BY partition_date,cl_id,'neirong'
)t2
GROUP BY cl_id,partition_date
......
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