Commit 8fa2a506 authored by 王志伟's avatar 王志伟

统计like项目

parent c49b874b
...@@ -592,9 +592,8 @@ object alpha_ctr { ...@@ -592,9 +592,8 @@ object alpha_ctr {
""".stripMargin """.stripMargin
).rdd.map(row => { ).rdd.map(row => {
val lenth=row.toSeq.length val lenth=row.toSeq.length
println(lenth)
(stat_date,lenth) (stat_date,lenth)
}) }).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