Commit 3de84bbd authored by 王志伟's avatar 王志伟

统计发现页面的点击率

parent 87bad94d
...@@ -802,12 +802,13 @@ object question_count { ...@@ -802,12 +802,13 @@ object question_count {
val question_count = sc.sql( val question_count = sc.sql(
s""" s"""
|SELECT partition_date,count(cl_id) |SELECT partition_date,count(cl_id)
|FROM online.tl_hdfs_maidian_view ov inner join agency_id |FROM online.tl_hdfs_maidian_view ov left join agency_id
|on ov.cl_id = agency_id.device_id |on ov.cl_id = agency_id.device_id
|WHERE ov.partition_date >= '20190101' |WHERE ov.partition_date >= '20190101'
|and ov.action='community_home_click_feed_card' |and ov.action='community_home_click_feed_card'
|and ov.params["card_type"]="问题" |and ov.params["card_type"]="问题"
|and ov.cl_id not in (select device_id from blacklist) |and ov.cl_id not in (select device_id from blacklist)
|and agency_id.device_id is null
|GROUP BY ov.partition_date |GROUP BY ov.partition_date
|order by ov.partition_date |order by ov.partition_date
""".stripMargin """.stripMargin
......
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