Skip to content

Instantly share code, notes, and snippets.

@kmizumar
Created July 1, 2016 18:08
Show Gist options
  • Save kmizumar/ae586c46bfbeadbc55967b6483663d6f to your computer and use it in GitHub Desktop.
Save kmizumar/ae586c46bfbeadbc55967b6483663d6f to your computer and use it in GitHub Desktop.
val cp = sqlContext.parquetFile("output/1/tfpach/cp")
val pf = sqlContext.parquetFile("output/1/tfpach/pf")
val start = System.nanoTime()
cp.join(pf, cp("ac")===pf("ac")).drop(pf.col("ac")).write.parquet("join-0")
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