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

smart_rank 相关的统计指标

parent 62a25986
...@@ -617,14 +617,12 @@ object smart_rank_count { ...@@ -617,14 +617,12 @@ object smart_rank_count {
val user_city_meigou_view = sc.sql( val user_city_meigou_view = sc.sql(
s""" s"""
|select ov.cl_id as device_id,ov.city_id as device_city,ov.params['business_id'] as meigou_id |select cl_id as device_id,city_id as device_city,params['business_id'] as meigou_id
|from online.tl_hdfs_maidian_view ov left join final_id |from online.tl_hdfs_maidian_view
|on ov.cl_id = final_id.device_id |where action = "page_view"
|where ov.action = "page_view" |and params['page_name']="welfare_detail"
|and ov.params['page_name']="welfare_detail" |and partition_date >='20181201'
|and ov.partition_date >='20181201' |and city_id is not null
|and ov.city_id is not null
|and final_id.device_id is null
""".stripMargin """.stripMargin
) )
user_city_meigou_view.show() user_city_meigou_view.show()
......
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