aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/src/test
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2016-04-21 11:42:25 -0700
committerReynold Xin <rxin@databricks.com>2016-04-21 11:42:25 -0700
commit3a21e8d5ed640e3f82946893e24c099aa723c169 (patch)
treef67f237c69f42f92d74d05ba3e835257116fb981 /sql/hive/src/test
parent79008e6cfd0c93a09e520850306dad347c1ad3b0 (diff)
downloadspark-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.scala4
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)