aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorCheng Lian <lian.cs.zju@gmail.com>2014-09-13 12:35:40 -0700
committerMichael Armbrust <michael@databricks.com>2014-09-13 12:35:40 -0700
commit184cd51c4207c23726da97f907f2d912a5a44845 (patch)
tree4a6858ac4f601528b6aebe65c99f78fe803d61a0 /sql
parenta523ceaf159733dabcef84c7adc1463546679f65 (diff)
downloadspark-184cd51c4207c23726da97f907f2d912a5a44845.tar.gz
spark-184cd51c4207c23726da97f907f2d912a5a44845.tar.bz2
spark-184cd51c4207c23726da97f907f2d912a5a44845.zip
[SPARK-3481][SQL] Removes the evil MINOR HACK
This is a follow up of #2352. Now we can finally remove the evil "MINOR HACK", which covered up the eldest bug in the history of Spark SQL (see details [here](https://github.com/apache/spark/pull/2352#issuecomment-55440621)). Author: Cheng Lian <lian.cs.zju@gmail.com> Closes #2377 from liancheng/remove-evil-minor-hack and squashes the following commits: 0869c78 [Cheng Lian] Removes the evil MINOR HACK
Diffstat (limited to 'sql')
-rw-r--r--sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveComparisonTest.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveComparisonTest.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveComparisonTest.scala
index 671c3b162f..79cc7a3fcc 100644
--- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveComparisonTest.scala
+++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveComparisonTest.scala
@@ -250,9 +250,9 @@ abstract class HiveComparisonTest
}
try {
- // MINOR HACK: You must run a query before calling reset the first time.
- TestHive.sql("SHOW TABLES")
- if (reset) { TestHive.reset() }
+ if (reset) {
+ TestHive.reset()
+ }
val hiveCacheFiles = queryList.zipWithIndex.map {
case (queryString, i) =>