diff options
author | Reynold Xin <rxin@apache.org> | 2014-06-18 22:44:12 -0700 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2014-06-18 22:44:12 -0700 |
commit | 640c294369f49a7602c33c7c389088aec8a316d3 (patch) | |
tree | 3bf630593892d6072632da56e25250fa60a2a8cb /sql/hive | |
parent | 566f70f2140c1d243fe2368af60ecb390ac8ab3e (diff) | |
download | spark-640c294369f49a7602c33c7c389088aec8a316d3.tar.gz spark-640c294369f49a7602c33c7c389088aec8a316d3.tar.bz2 spark-640c294369f49a7602c33c7c389088aec8a316d3.zip |
[SPARK-2187] Explain should not run the optimizer twice.
@yhuai @marmbrus @concretevitamin
Author: Reynold Xin <rxin@apache.org>
Closes #1123 from rxin/explain and squashes the following commits:
def83b0 [Reynold Xin] Update unit tests for explain.
a9d3ba8 [Reynold Xin] [SPARK-2187] Explain should not run the optimizer twice.
Diffstat (limited to 'sql/hive')
-rw-r--r-- | sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala index fe698f0fc5..8b2bdd513b 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala @@ -202,12 +202,9 @@ class HiveQuerySuite extends HiveComparisonTest { } } - private val explainCommandClassName = - classOf[execution.ExplainCommand].getSimpleName.stripSuffix("$") - def isExplanation(result: SchemaRDD) = { val explanation = result.select('plan).collect().map { case Row(plan: String) => plan } - explanation.size > 1 && explanation.head.startsWith(explainCommandClassName) + explanation.size > 1 && explanation.head.startsWith("Physical execution plan") } test("SPARK-1704: Explain commands as a SchemaRDD") { |