pan3793 commented on issue #3541:
URL: https://github.com/apache/iceberg/issues/3541#issuecomment-972477426


   > The problem with the approach that you mentioned is that we still wouldn't 
have the ability to get the CASCADE information from the query.
   
   I can't agree. Spark already handled the nonempty detection, an exception 
will throw if drop a nonempty database without CASCADE. Why Iceberg need to 
know the CASCADE flag?
   ```
         if (!cascade) {
           if (catalog.asTableCatalog.listTables(ns).nonEmpty
             || nsCatalog.listNamespaces(ns).nonEmpty) {
             throw 
QueryExecutionErrors.cannotDropNonemptyNamespaceError(namespace)
           }
         }
   ```


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

Reply via email to