Skip to content

Commit

Permalink
Don't materialize the RDD
Browse files Browse the repository at this point in the history
  • Loading branch information
hvanhovell committed Feb 22, 2017
1 parent bd37934 commit c17fe2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class Dataset[T] private[sql](
// For various commands (like DDL) and queries with side effects, we force query execution
// to happen right away to let these side effects take place eagerly.
case _: RunnableCommand =>
queryExecution.executedPlan.execute() // Trigger execution
queryExecution.executedPlan.executeToIterator() // Trigger execution
MaterializedPlan(queryExecution.executedPlan)
case _: Command =>
// Note that there is currently no command that is not a RunnableCommand.
Expand Down

0 comments on commit c17fe2c

Please sign in to comment.