gengliangwang commented on code in PR #49778:
URL: https://github.com/apache/spark/pull/49778#discussion_r1939842777


##########
sql/core/src/test/scala/org/apache/spark/sql/execution/command/v1/DescribeTableSuite.scala:
##########
@@ -462,6 +462,21 @@ trait DescribeTableSuiteBase extends 
command.DescribeTableSuiteBase
     }
   }
 
+  test("DESCRIBE AS JSON for non-existent table throws in checkAnalysis") {
+    val tbl = "undefined"
+    val sqlStatement = s"DESCRIBE FORMATTED $tbl AS JSON"

Review Comment:
   Let's test `desc`/`desc extended` as well



-- 
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.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to