&&
Boolean AND.
// Scala: The following selects people that are in school and employed at the same time.
people.select( people("inSchool") && people("isEmployed") )
// Kotlin:
import org.jetbrains.kotlinx.spark.api.*
people.select( people("inSchool") and people("isEmployed") )
// or
people.select( people("inSchool") `&&` people("isEmployed") )
// Java:
import static org.apache.spark.sql.functions.*;
people.select( people.col("inSchool").and(people.col("isEmployed")) );
Content copied to clipboard