File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class HiveExplainSuite extends QueryTest with SQLTestUtils with TestHiveSingleto
7777 " src" )
7878 }
7979
80- test(" SPARK-6212 : The EXPLAIN output of CTAS only shows the analyzed plan" ) {
80+ test(" SPARK-17230 : The EXPLAIN output of CTAS only shows the analyzed plan" ) {
8181 withTempView(" jt" ) {
8282 val rdd = sparkContext.parallelize((1 to 10 ).map(i => s """ {"a": $i, "b":"str $i"} """ ))
8383 spark.read.json(rdd).createOrReplaceTempView(" jt" )
@@ -98,8 +98,8 @@ class HiveExplainSuite extends QueryTest with SQLTestUtils with TestHiveSingleto
9898 }
9999
100100 val physicalIndex = outputs.indexOf(" == Physical Plan ==" )
101- assert(! outputs.substring(physicalIndex).contains(" Subquery " ),
102- " Physical Plan should not contain Subquery since it's eliminated by optimizer " )
101+ assert(outputs.substring(physicalIndex).contains(" SubqueryAlias " ),
102+ " Physical Plan should contain SubqueryAlias since the query should not be optimized " )
103103 }
104104 }
105105
Original file line number Diff line number Diff line change @@ -232,12 +232,12 @@ class SQLViewSuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
232232
233233 val catalog = spark.sessionState.catalog
234234 val viewMeta = catalog.getTableMetadata(TableIdentifier (" test_view" ))
235- assert(viewMeta.properties( " comment" ) == " test" )
235+ assert(viewMeta.comment == Some ( " test" ) )
236236 assert(viewMeta.properties(" key" ) == " a" )
237237
238238 sql(" ALTER VIEW test_view AS SELECT 3 AS i, 4 AS j" )
239239 val updatedViewMeta = catalog.getTableMetadata(TableIdentifier (" test_view" ))
240- assert(updatedViewMeta.properties( " comment" ) == " test" )
240+ assert(updatedViewMeta.comment == Some ( " test" ) )
241241 assert(updatedViewMeta.properties(" key" ) == " a" )
242242 assert(updatedViewMeta.createTime == viewMeta.createTime)
243243 // The view should be updated.
You can’t perform that action at this time.
0 commit comments