Skip to content

Commit dc0b663

Browse files
committed
SPARK-2283: reset test environment before running PruningSuite
1 parent 1132e47 commit dc0b663

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/PruningSuite.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ import scala.collection.JavaConversions._
2626
* A set of test cases that validate partition and column pruning.
2727
*/
2828
class PruningSuite extends HiveComparisonTest {
29+
// Column/partition pruning is not implemented for `InMemoryColumnarTableScan` yet, need to reset
30+
// the environment to ensure all referenced tables in this suites are not cached in-memory.
31+
// Refer to https://issues.apache.org/jira/browse/SPARK-2283 for details.
32+
TestHive.reset()
33+
2934
// Column pruning tests
3035

3136
createPruningTest("Column pruning - with partitioned table",

0 commit comments

Comments
 (0)