I have a data frame with four fields. one of the field name is Status and i am trying to use a OR condition in .filter for a dataframe . I tried below queries but no luck.>
For future references : we can use isInCollection to filter ,here is a example : Note : It will look for exact match
isInCollection
def getSelectedTablesRows(allTablesInfoDF: DataFrame, tableNames: Seq[String]): DataFrame = { allTablesInfoDF.where(col("table_name").isInCollection(tableNames)) }