diff options
author | Herman van Hovell <hvanhovell@databricks.com> | 2017-02-24 23:05:36 -0800 |
---|---|---|
committer | Wenchen Fan <wenchen@databricks.com> | 2017-02-24 23:05:59 -0800 |
commit | 8f0511ed49a353fb0745f320a84063ced5cc1857 (patch) | |
tree | cb770f0843aa77f2afaa81a98e12a2a1231ce60c /sql/core/src/test/resources/sql-tests/results/order-by-ordinal.sql.out | |
parent | 4cb025afafe63d5871356d9dc38d58c1df0da996 (diff) | |
download | spark-8f0511ed49a353fb0745f320a84063ced5cc1857.tar.gz spark-8f0511ed49a353fb0745f320a84063ced5cc1857.tar.bz2 spark-8f0511ed49a353fb0745f320a84063ced5cc1857.zip |
[SPARK-19650] Commands should not trigger a Spark job
Spark executes SQL commands eagerly. It does this by creating an RDD which contains the command's results. The downside to this is that any action on this RDD triggers a Spark job which is expensive and is unnecessary.
This PR fixes this by avoiding the materialization of an `RDD` for `Command`s; it just materializes the result and puts them in a `LocalRelation`.
Added a regression test to `SQLQuerySuite`.
Author: Herman van Hovell <hvanhovell@databricks.com>
Closes #17027 from hvanhovell/no-job-command.
Diffstat (limited to 'sql/core/src/test/resources/sql-tests/results/order-by-ordinal.sql.out')
-rw-r--r-- | sql/core/src/test/resources/sql-tests/results/order-by-ordinal.sql.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/test/resources/sql-tests/results/order-by-ordinal.sql.out b/sql/core/src/test/resources/sql-tests/results/order-by-ordinal.sql.out index 03a4e72d0f..cc47cc67c8 100644 --- a/sql/core/src/test/resources/sql-tests/results/order-by-ordinal.sql.out +++ b/sql/core/src/test/resources/sql-tests/results/order-by-ordinal.sql.out @@ -114,7 +114,7 @@ set spark.sql.orderByOrdinal=false -- !query 9 schema struct<key:string,value:string> -- !query 9 output -spark.sql.orderByOrdinal +spark.sql.orderByOrdinal false -- !query 10 |