Skip to content

Instantly share code, notes, and snippets.

@aialenti
Last active October 27, 2019 22:56
Show Gist options
  • Save aialenti/b57a04d89fa9419eaed486495b5fec75 to your computer and use it in GitHub Desktop.
Save aialenti/b57a04d89fa9419eaed486495b5fec75 to your computer and use it in GitHub Desktop.
val t0 = System.nanoTime()
// Create the Execution Plan
fact_table = fact_table.join(dimension_table,
fact_table.col("dimension_id") === dimension_table.col("id"))
// Perform an action to run the execution
fact_table.count
val t1 = System.nanoTime()
println("Elapsed time: " + (t1 - t0)/10e8 + "s")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment