Commit 4f7cec73 authored by 王志伟's avatar 王志伟

统计反作弊数据

parent f5a5374d
...@@ -786,11 +786,11 @@ object bug_again_count { ...@@ -786,11 +786,11 @@ object bug_again_count {
val data_count = sc.sql( val data_count = sc.sql(
s""" s"""
|SELECT '${stat_date}' as stat_date,cl_id as device_id,channel,count(cl_id) as open_num,sum(params['duration']) as time_all,sum(params['duration'])/count(cl_id) as avge_time |SELECT '${stat_date}' as stat_date,cl_id as device_id,count(cl_id) as open_num,sum(params['duration']) as time_all,sum(params['duration'])/count(cl_id) as avge_time
|from online.tl_hdfs_maidian_view |from online.tl_hdfs_maidian_view
|where partition_date='${partition_date}' |where partition_date='${partition_date}'
|and action ='on_app_session_over' |and action ='on_app_session_over'
|GROUP BY device_id,channel |GROUP BY device_id
""".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