cloud-fan commented on a change in pull request #30321:
URL: https://github.com/apache/spark/pull/30321#discussion_r521127001



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/ShowCreateTableSuite.scala
##########
@@ -155,16 +155,17 @@ abstract class ShowCreateTableSuite extends QueryTest 
with SQLTestUtils {
       val ex = intercept[AnalysisException] {
         sql(s"SHOW CREATE TABLE $viewName")
       }
-      assert(ex.getMessage.contains("SHOW CREATE TABLE is not supported on a 
temporary view"))
+      assert(ex.getMessage.contains(s"$viewName is a temp view not table or 
permanent view"))

Review comment:
       Not related to this PR: One idea to improve the error message is to put 
the command name in `UnresolvedTableOrView` or other similar plans when the 
parser creates the command logical plan.




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to