vinitamaloo-asu opened a new issue, #8529:
URL: https://github.com/apache/iceberg/issues/8529
### Apache Iceberg version
1.3.1 (latest release)
### Query engine
Spark
### Please describe the bug 🐞
Running this command with:
`spark.sql(DROP DATABASE IF EXISTS dbname CASCADE)`
Gives the below exception:
`org.apache.iceberg.exceptions.NamespaceNotEmptyException: Namespace dbname
is not empty. One or more tables exist.
at
org.apache.iceberg.hive.HiveCatalog.dropNamespace(HiveCatalog.java:353)
at
org.apache.iceberg.spark.SparkCatalog.dropNamespace(SparkCatalog.java:447)
at
org.apache.spark.sql.execution.datasources.v2.DropNamespaceExec.run(DropNamespaceExec.scala:52)
at
org.apache.spark.sql.execution.datasources.v2.V2CommandExec.result$lzycompute(V2CommandExec.scala:40)
at
org.apache.spark.sql.execution.datasources.v2.V2CommandExec.result(V2CommandExec.scala:40)
at
org.apache.spark.sql.execution.datasources.v2.V2CommandExec.executeCollect(V2CommandExec.scala:46)`
The expectation is that with CASCADE specified, command should delete all
tables and the db itself.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]