Commit 1b0ab9c5 authored by edz's avatar edz

push core

parent 02d58744
...@@ -124,7 +124,7 @@ FROM ...@@ -124,7 +124,7 @@ FROM
and partition_date<=regexp_replace(DATE_SUB(current_date,1) ,'-','') and partition_date<=regexp_replace(DATE_SUB(current_date,1) ,'-','')
and action='on_click_card' and action='on_click_card'
and page_name='home' and page_name='home'
and params['card_type']='card' and params['card_type'] in ('card','video','search_word')
group by partition_date group by partition_date
,cl_id ,cl_id
,params['card_id'] ,params['card_id']
...@@ -143,7 +143,8 @@ FROM ...@@ -143,7 +143,8 @@ FROM
and (referrer in ('home') or and (referrer in ('home') or
(params['referrer_link'] like '%[%' and (params['referrer_link'] like '%[%' and
json_split(params['referrer_link'])[size(json_split(params['referrer_link']))-1] in ('home'))) json_split(params['referrer_link'])[size(json_split(params['referrer_link']))-1] in ('home')))
and page_name in ('diary_detail','topic_detail','post_detail','user_post_detail','doctor_post_detail','question_detail','answer_detail','question_answer_detail') and (page_name in ('diary_detail','topic_detail','post_detail','user_post_detail','doctor_post_detail','question_detail','answer_detail','question_answer_detail',
'video_steep','article_detail') or page_name like 'search_result_%')
group by partition_date group by partition_date
,cl_id ,cl_id
,params['business_id'] ,params['business_id']
...@@ -164,8 +165,9 @@ FROM ...@@ -164,8 +165,9 @@ FROM
and (referrer='home' or and (referrer='home' or
(params['referrer_link'] like '%[%' and (params['referrer_link'] like '%[%' and
json_split(params['referrer_link'])[size(json_split(params['referrer_link']))-1]='home')) json_split(params['referrer_link'])[size(json_split(params['referrer_link']))-1]='home'))
and page_name in ('diary_detail','topic_detail','post_detail','user_post_detail','doctor_post_detail','question_detail','answer_detail','question_answer_detail', and (page_name in ('diary_detail','topic_detail','post_detail','user_post_detail','doctor_post_detail','question_detail','answer_detail','question_answer_detail',
'video_steep','article_detail') 'video_steep','article_detail') or page_name like 'search_result_%')
--and (params['is_push']=0 or params['is_push'] is null)
)a )a
left join left join
(--评论的埋点有缺失,所以用业务库数据来补充 (--评论的埋点有缺失,所以用业务库数据来补充
...@@ -224,7 +226,8 @@ FROM ...@@ -224,7 +226,8 @@ FROM
or (action='on_click_favor' and params['motion']='do')--点击收藏 or (action='on_click_favor' and params['motion']='do')--点击收藏
or action='page_click_share'--点击分享 or action='page_click_share'--点击分享
or (action='on_click_vote' and params['motion']='vote')--点击点赞 or (action='on_click_vote' and params['motion']='vote')--点击点赞
or b.user_id is not null )--当天有针对内容的评论 or b.user_id is not null --当天有针对内容的评论
or page_name like 'search_result_%' and action not in ('upload_page','report_status','popup_view','refresh_page','on_app_session_over'))--在搜索结果页有点击行为
group by a.partition_date,a.cl_id,a.business_id group by a.partition_date,a.cl_id,a.business_id
)t5 )t5
on t4.partition_date=t5.partition_date and t4.device_id=t5.cl_id and t4.card_id=t5.business_id on t4.partition_date=t5.partition_date and t4.device_id=t5.cl_id and t4.card_id=t5.business_id
......
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