Skip to content

Instantly share code, notes, and snippets.

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