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

统计日记本点击的各个来源数量

parent 24c102d5
...@@ -123,7 +123,7 @@ object temp_analysis { ...@@ -123,7 +123,7 @@ object temp_analysis {
for( a <- referrer ){ for( a <- referrer ){
val diary_clk_temp = sc.sql( val diary_clk_temp = sc.sql(
s""" s"""
|select ov.partition_date,count(ov.cl_id) as clk_num,count(distinct(ov.cl_id)) |select ov.partition_date,count(ov.cl_id) as clk_num,count(distinct(ov.cl_id)),count(ov.cl_id)/count(distinct(ov.cl_id))
|from online.tl_hdfs_maidian_view ov left join final_id |from online.tl_hdfs_maidian_view ov left join final_id
|on ov.cl_id = final_id.device_id |on ov.cl_id = final_id.device_id
|where ov.action = "page_view" |where ov.action = "page_view"
......
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