Skip to content

Instantly share code, notes, and snippets.

@kmizumar
Created July 1, 2016 18:09
Show Gist options
  • Save kmizumar/5a7651e886a1df1860aff71c79559136 to your computer and use it in GitHub Desktop.
Save kmizumar/5a7651e886a1df1860aff71c79559136 to your computer and use it in GitHub Desktop.
val cp = sqlContext.parquetFile("cp-ordered-repartitioned")
val pf = sqlContext.parquetFile("pf-ordered-repartitioned")
val start = System.nanoTime()
cp.join(pf, cp("ac")===pf("ac")).drop(pf.col("ac")).write.parquet("join-2")
val end = System.nanoTime()
println("Time elapsed: " + (end-start)/1000 + " microsecs")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment