Commit 7e223fe7 authored by 王志伟's avatar 王志伟

repair bug

parent 10f1bd72
......@@ -75,10 +75,18 @@ object app_list {
.filter(x => x._2.contains("新氧美容")).map(x => x._1).collect().toList.toDF()
rdd.createOrReplaceTempView("device_id")
val temp = sc.sql(
s"""
|select *
|from device_id
""".stripMargin
)
temp.createOrReplaceTempView("temp")
val device_id = sc.sql(
s"""
|select '${param.date}' as stat_date,value as device_id
|from device_id
|from temp
""".stripMargin
)
device_id.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