diff options
author | Reynold Xin <rxin@databricks.com> | 2016-04-21 11:42:25 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-04-21 11:42:25 -0700 |
commit | 3a21e8d5ed640e3f82946893e24c099aa723c169 (patch) | |
tree | f67f237c69f42f92d74d05ba3e835257116fb981 /sql/hive/src/test | |
parent | 79008e6cfd0c93a09e520850306dad347c1ad3b0 (diff) | |
download | spark-3a21e8d5ed640e3f82946893e24c099aa723c169.tar.gz spark-3a21e8d5ed640e3f82946893e24c099aa723c169.tar.bz2 spark-3a21e8d5ed640e3f82946893e24c099aa723c169.zip |
[SPARK-14795][SQL] Remove the use of Hive's variable substitution
## What changes were proposed in this pull request?
This patch builds on #12556 and completely removes the use of Hive's variable substitution.
## How was this patch tested?
Covered by existing tests.
Author: Reynold Xin <rxin@databricks.com>
Closes #12561 from rxin/SPARK-14795.
Diffstat (limited to 'sql/hive/src/test')
-rw-r--r-- | sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala index b97e9fe35c..345ee8ef28 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala @@ -512,13 +512,13 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton { sql("SELECT key FROM ${hiveconf:tbl} ORDER BY key, value limit 1"), sql("SELECT key FROM src ORDER BY key, value limit 1").collect().toSeq) - sql("set hive.variable.substitute=false") // disable the substitution + sql("set spark.sql.variable.substitute=false") // disable the substitution sql("set tbl2=src") intercept[Exception] { sql("SELECT key FROM ${hiveconf:tbl2} ORDER BY key, value limit 1").collect() } - sql("set hive.variable.substitute=true") // enable the substitution + sql("set spark.sql.variable.substitute=true") // enable the substitution checkAnswer( sql("SELECT key FROM ${hiveconf:tbl2} ORDER BY key, value limit 1"), sql("SELECT key FROM src ORDER BY key, value limit 1").collect().toSeq) |