Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/15011#discussion_r86082896
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala
---
@@ -1594,10 +1594,7 @@ class DDLSuite extends QueryTest with
SharedSQLContext with BeforeAndAfterEach {
test("drop current database") {
sql("CREATE DATABASE temp")
sql("USE temp")
- val m = intercept[AnalysisException] {
- sql("DROP DATABASE temp")
- }.getMessage
- assert(m.contains("Can not drop current database `temp`"))
+ sql("DROP DATABASE temp")
--- End diff --
Add one more case, here? Try to create a table without specifying the
database name. Thus, it should use the current database, which has been dropped?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]