I have to filter non-null column values in a Spark DataFrame using a List[String]:
val keyList = List("columnA", "columnB", "columnC", "columnD", ...)
For a single column named key, the syntax should be :
val nonNullDf = df.filter(col("key").isNotNull)
My question is how to use the keyList into the previous filter?