cloud-fan commented on a change in pull request #30915:
URL: https://github.com/apache/spark/pull/30915#discussion_r549240857
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/command/v1/ShowTablesSuite.scala
##########
@@ -100,6 +100,17 @@ trait ShowTablesSuiteBase extends
command.ShowTablesSuiteBase {
}
}
}
+
+ test("no database specified") {
+ Seq(
+ s"SHOW TABLES IN $catalog",
+ s"SHOW TABLE EXTENDED IN $catalog LIKE '*tbl'").foreach { showTableCmd =>
+ val errMsg = intercept[AnalysisException] {
+ sql(showTableCmd)
+ }.getMessage
+ assert(errMsg.contains("multi-part identifier cannot be empty"))
Review comment:
Can we make the error message more explicit? `Namespaces in V1 catalog
can only have a single name part.`
----------------------------------------------------------------
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]