Commit 50f172d8 authored by 王志伟's avatar 王志伟

统计like项目

parent c30fc64e
...@@ -590,11 +590,11 @@ object alpha_ctr { ...@@ -590,11 +590,11 @@ object alpha_ctr {
|and type = 'page_precise_exposure' |and type = 'page_precise_exposure'
|and partition_day='${partition_date}' |and partition_day='${partition_date}'
""".stripMargin """.stripMargin
).show() )
// .rdd.map(row => { .rdd.map(row => {
// val lenth=row.toSeq.length val lenth=JSON.parseFull(row.toString())
// (stat_date,lenth) (stat_date,lenth)
// }).toDF("stat_date","count").show() }).toDF("stat_date","count").show()
/*.rdd /*.rdd
.map(row =>{ .map(row =>{
val s = row.getAs[List[String]]("exposure_cards") val s = row.getAs[List[String]]("exposure_cards")
......
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