Commit 12436ffa authored by 郭羽's avatar 郭羽

搜索指标统计

parent 48337495
......@@ -139,9 +139,7 @@ for t in range(0, task_days):
FROM online.bl_hdfs_maidian_updates
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_more','search_result_diary','search_result_post'))
or (action = 'on_click_card' AND params['card_content_type'] in ('answer','diary') AND page_name in ('search_result_more','search_result_diary','search_result_question_answer')))
AND (action = 'on_click_card' AND params['card_content_type'] in ('answer') AND page_name in ('search_result_question_answer'))
GROUP BY partition_date,cl_id,'neirong'
)t2
GROUP BY cl_id,partition_date
......
......@@ -140,8 +140,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_more','search_result_diary','search_result_post'))
or (action = 'on_click_card' AND params['card_content_type'] in ('answer','diary') AND page_name in ('search_result_more','search_result_diary','search_result_question_answer')))
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')))
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