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

跑波动原因数据

parent ab7b7fd0
...@@ -119,16 +119,14 @@ object temp_analysis { ...@@ -119,16 +119,14 @@ object temp_analysis {
val diary_clk_new = sc.sql( val diary_clk_new = sc.sql(
s""" s"""
|select '${stat_date}' as stat_date,a.device_id,count(a.diary_id) |select ov.partition_date,ov.cl_id as device_id,ov.params['diary_id'] as diary_id
|(select ov.partition_date,ov.cl_id as device_id,ov.params['diary_id'] as diary_id
|from online.tl_hdfs_maidian_view ov inner join device_id_new |from online.tl_hdfs_maidian_view ov inner join device_id_new
|on ov.cl_id = device_id_new.device_id |on ov.cl_id = device_id_new.device_id
|where ov.action = 'on_click_diary_card' |where ov.action = 'on_click_diary_card'
|and ov.params['tab_name'] = '精选' |and ov.params['tab_name'] = '精选'
|and ov.params['page_name'] = 'home' |and ov.params['page_name'] = 'home'
|and ov.partition_date='${partition_date}' |and ov.partition_date='${partition_date}'
|and agency_id.device_id is null) a |and agency_id.device_id is null
|group by a.device_id
""".stripMargin """.stripMargin
) )
diary_clk_new.show(80) diary_clk_new.show(80)
......
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