ezoic

Wednesday, June 7, 2017

Spark SQL query in cluase for strings


val list = List("a","b")
val query = s"select * from df where uid in
 (${list.map ( x => "'" + x + "'").mkString(",") })"
 
 

No comments:

Post a Comment

looking for a man

 I am a mid aged woman.  I was born in 1980. I do not have any kid. no complicated  dating before . I am looking for a man here for marriage...