val data= List("z", "f", "h")
sqlContext.sql("select name from table")
.when($"name".isin(data:_*),1)
.otherwise(0)
.show
How do I do the opposite of isin? Do we have anything like isnotin?
val data= List("z", "f", "h")
sqlContext.sql("select name from table")
.when($"name".isin(data:_*),1)
.otherwise(0)
.show
How do I do the opposite of isin? Do we have anything like isnotin?