dongjoon-hyun commented on a change in pull request #25149: [SPARK-28383][SQL] 
SHOW CREATE TABLE is not supported on a temporary view
URL: https://github.com/apache/spark/pull/25149#discussion_r312776947
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewSuite.scala
 ##########
 @@ -159,7 +159,9 @@ abstract class SQLViewSuite extends QueryTest with 
SQLTestUtils {
         
Thread.currentThread().getContextClassLoader.getResource("data/files/employee.dat")
       assertNoSuchTable(s"""LOAD DATA LOCAL INPATH "$dataFilePath" INTO TABLE 
$viewName""")
       assertNoSuchTable(s"TRUNCATE TABLE $viewName")
-      assertNoSuchTable(s"SHOW CREATE TABLE $viewName")
+      intercept[AnalysisException] {
 
 Review comment:
   As you know already, we need to check the actual error message always 
because `AnalysisException` can hide the regressions.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to