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

R is not a simple programming language, and it does better on reading excel files than python

R is not a simple programming language, and it does better on reading excel files than python . tried to read excel files to python and R. i...