Skip to content

Instantly share code, notes, and snippets.

@vzayaz
Created September 6, 2020 21:11
Show Gist options
  • Save vzayaz/da17f83c447680fe1e63142b7484db56 to your computer and use it in GitHub Desktop.
Save vzayaz/da17f83c447680fe1e63142b7484db56 to your computer and use it in GitHub Desktop.
val res = spark.range(1000L * 1000 * 1000)
.rdd
.filter(_ %2 == 0)
.count()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment