Last active
June 27, 2022 21:03
-
-
Save mrk-andreev/ace87dd95dd586bbaab4f89be1b9b73c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object PlaygroundUtil { | |
def in(main: DataFrame, dict: DataFrame, joinColumn: String): DataFrame = { | |
main.join(dict, Seq(joinColumn), "left_semi") | |
} | |
def notIn(main: DataFrame, dict: DataFrame, joinColumn: String): DataFrame = { | |
main.join(dict, Seq(joinColumn), "left_anti") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment