Skip to content

Instantly share code, notes, and snippets.

@minyk
Created August 23, 2016 06:09
Show Gist options
  • Save minyk/5dfbf8407dd3bfe1a3954604feb65bb3 to your computer and use it in GitHub Desktop.
Save minyk/5dfbf8407dd3bfe1a3954604feb65bb3 to your computer and use it in GitHub Desktop.
Spark query plan
var inputDF = sqlContext.read.json("/tmp/test1.json")
val query = sqlContext.sql("SELECT age FROM test WHERE age > 30")
val plan = query.queryExecution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment