You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/12/28 09:07:24 UTC
[GitHub] [spark] MaxGekk commented on a change in pull request #30915: [SPARK-33899][SQL] Fix assert failure in v1 SHOW TABLES/VIEWS on `spark_catalog`
MaxGekk commented on a change in pull request #30915:
URL: https://github.com/apache/spark/pull/30915#discussion_r549271323
##########
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:
I would prefer to make such changes separately if you don't mind because such change will cause modification that are unrelated to this PR.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org