Commit 40e29a95 authored by 王志伟's avatar 王志伟

彦钊更改esmmData

parent d8c1cfea
...@@ -333,9 +333,9 @@ object EsmmPredData { ...@@ -333,9 +333,9 @@ object EsmmPredData {
val native_data1 = sc.sql( val native_data1 = sc.sql(
s""" s"""
|select device_id,city_id as ucity_id, |select device_id,city_id as ucity_id,
|explode(split(split(native_queue, concat(',',split(native_queue,',')[500]))[0],',')) as cid_id |explode(native_queue) as cid_id
|from native_data |from native_data
""".stripMargin """.stripMargin
).withColumn("label",lit(0)) ).withColumn("label",lit(0))
native_data1.createOrReplaceTempView("native_data1") native_data1.createOrReplaceTempView("native_data1")
println("native_explode_count",native_data1.count()) println("native_explode_count",native_data1.count())
......
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