Commit 541bb858 authored by 王志伟's avatar 王志伟

搜索关键词统计bug修复

parent 8247d5ec
...@@ -113,13 +113,14 @@ object Search_keywords_count { ...@@ -113,13 +113,14 @@ object Search_keywords_count {
} }
object test{ object test {
def test_udf(param:String) ={ def test_udf(param: String) = {
val b=JSON.parseFull(param) val b = JSON.parseFull(param)
b match { b match {
// Matches if jsonStr is valid JSON and represents a Map of Strings to Any // Matches if jsonStr is valid JSON and represents a Map of Strings to Any
case Some(map: Map[String, Any]) => param case Some(map: Map[String, Any]) => param
case None => "" case None => ""
case _ => "" case _ => ""
} }
}
} }
\ No newline at end of file
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