Commit ceaacdf8 authored by 王志伟's avatar 王志伟

根据on_click_diary_card计算ctr

parent fc38dc9a
...@@ -547,7 +547,7 @@ object diary_clk_card { ...@@ -547,7 +547,7 @@ object diary_clk_card {
val clk_count_oldUser_all_a = sc.sql( val clk_count_oldUser_all_a = sc.sql(
s""" s"""
|select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_oldUser_Contrast_a |select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_oldUser_all_a
|from online.tl_hdfs_maidian_view ot inner join device_id_old |from online.tl_hdfs_maidian_view ot inner join device_id_old
|on ot.cl_id = device_id_old.device_id |on ot.cl_id = device_id_old.device_id
|where ot.action='on_click_diary_card' |where ot.action='on_click_diary_card'
...@@ -643,7 +643,7 @@ object diary_clk_card { ...@@ -643,7 +643,7 @@ object diary_clk_card {
val clk_count_newUser_all_a = sc.sql( val clk_count_newUser_all_a = sc.sql(
s""" s"""
|select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_oldUser_Contrast_a |select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_newUser_all_a
|from online.tl_hdfs_maidian_view ot inner join device_id_new |from online.tl_hdfs_maidian_view ot inner join device_id_new
|on ot.cl_id = device_id_new.device_id |on ot.cl_id = device_id_new.device_id
|where ot.action='on_click_diary_card' |where ot.action='on_click_diary_card'
...@@ -655,7 +655,7 @@ object diary_clk_card { ...@@ -655,7 +655,7 @@ object diary_clk_card {
val clk_count_newUser_all_b = sc.sql( val clk_count_newUser_all_b = sc.sql(
s""" s"""
|select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_oldUser_Contrast_b |select '${stat_date}' as stat_date, count(ot.cl_id) as clk_count_newUser_all_b
|from online.tl_hdfs_maidian_view ot inner join device_id_new |from online.tl_hdfs_maidian_view ot inner join device_id_new
|on ot.cl_id = device_id_new.device_id |on ot.cl_id = device_id_new.device_id
|where ot.action='full_stack_click_video_card_full_screen_play' |where ot.action='full_stack_click_video_card_full_screen_play'
......
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