Created
September 15, 2020 00:22
-
-
Save Welsige/85e762dc1f978a0e41f73d03990611e3 to your computer and use it in GitHub Desktop.
Scala Spark remove duplicates completely
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
| val df02 = df01.withColumn("cnt", count("*").over(Window.partitionBy($"id"))).where($"cnt"===1).drop($"cnt") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment