or
Boolean OR.
// Scala: The following selects people that are in school or employed.
people.filter( people("inSchool") || people("isEmployed") )
// Kotlin:
import org.jetbrains.kotlinx.spark.api.*
people.filter( people("inSchool") or people("isEmployed") )
// Java:
import static org.apache.spark.sql.functions.*;
people.filter( people.col("inSchool").or(people.col("isEmployed")) );
Content copied to clipboard