Commit 17914e6e authored by 王志伟's avatar 王志伟

chagn

parent 38f10f6d
...@@ -79,7 +79,7 @@ object testt { ...@@ -79,7 +79,7 @@ object testt {
val result = get_data_dura.rdd.map(row =>{ val result = get_data_dura.rdd.map(row =>{
val rowAppFieldMap:Map[String,Any] = row.getAs[Map[String,Any]]("params") val rowAppFieldMap:Map[String,Any] = row.getAs[Map[String,Any]]("params")
if (rowAppFieldMap.contains("duration")){ if (rowAppFieldMap.contains("duration")){
val exposure_data_lists:List[Any] = JSON.parseFull(rowAppFieldMap) val exposure_data_lists:List[Any] = JSON.parseFull(rowAppFieldMap("exposure_data").toString).get.asInstanceOf[List[Any]]
println(exposure_data_lists) println(exposure_data_lists)
} }
}) })
......
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