Commit 61a9e180 authored by 王志伟's avatar 王志伟

统计like项目

parent 8536978d
......@@ -559,7 +559,7 @@ object alpha_ctr {
val click_count_recommend = sc.sql(
s"""
|select '${stat_date}' as stat_date,count(*)
|select '${stat_date}' as stat_date,count(*) as count_recommend
|from bl.bl_alpha_et_mg_maidianlog_inc_d
|where params['tab_name']='recommend'
|and params['page_name']='home'
......@@ -571,7 +571,7 @@ object alpha_ctr {
val click_count_focus = sc.sql(
s"""
|select '${stat_date}' as stat_date,count(*)
|select '${stat_date}' as stat_date,count(*) as count_focus
|from bl.bl_alpha_et_mg_maidianlog_inc_d
|where params['tab_name']='focus'
|and params['page_name']='home'
......@@ -592,9 +592,8 @@ object alpha_ctr {
""".stripMargin
)
expoure_count_recommend.rdd.map(row =>{
println(row)
val s = row.getAs[List[String]]("exposure_cards")
println(s)
println(s.length)
})
......
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