Skip to content
Snippets Groups Projects
Commit 7f196b00 authored by Cheng Lian's avatar Cheng Lian Committed by Michael Armbrust
Browse files

[SPARK-2283][SQL] Reset test environment before running PruningSuite

JIRA issue: [SPARK-2283](https://issues.apache.org/jira/browse/SPARK-2283)

If `PruningSuite` is run right after `HiveCompatibilitySuite`, the first test case fails because `srcpart` table is cached in-memory by `HiveCompatibilitySuite`, but column pruning is not implemented for `InMemoryColumnarTableScan` operator yet.

Author: Cheng Lian <lian.cs.zju@gmail.com>

Closes #1221 from liancheng/spark-2283 and squashes the following commits:

dc0b663 [Cheng Lian] SPARK-2283: reset test environment before running PruningSuite
parent 9d824fed
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,11 @@ import scala.collection.JavaConversions._ ...@@ -26,6 +26,11 @@ import scala.collection.JavaConversions._
* A set of test cases that validate partition and column pruning. * A set of test cases that validate partition and column pruning.
*/ */
class PruningSuite extends HiveComparisonTest { class PruningSuite extends HiveComparisonTest {
// Column/partition pruning is not implemented for `InMemoryColumnarTableScan` yet, need to reset
// the environment to ensure all referenced tables in this suites are not cached in-memory.
// Refer to https://issues.apache.org/jira/browse/SPARK-2283 for details.
TestHive.reset()
// Column pruning tests // Column pruning tests
createPruningTest("Column pruning - with partitioned table", createPruningTest("Column pruning - with partitioned table",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment