kbendick commented on a change in pull request #3701: URL: https://github.com/apache/iceberg/pull/3701#discussion_r766226961
########## File path: spark/v3.2/spark/src/main/java/org/apache/iceberg/spark/SparkCatalog.java ########## @@ -369,15 +370,57 @@ public void alterNamespace(String[] namespace, NamespaceChange... changes) throw } @Override + // Spark assumes that catalogs CASCADE by default. So we have to eagerly + // attempt to drop namespaces and tables, but the CASCADE keyword is still + // required to actually drop tables and namespaces as Spark will error out + // if any of the recursive deletes are non-empty and the user didn't specify + // cascades in their query. + // + // Current master behavior in Spark (of DropNamespaceExec): + // https://github.com/apache/spark/blob/06c09a79b371c5ac3e4ebad1118ed94b460f48d1/sql/core/src/main/scala/org/apache + // /spark/sql/execution/datasources/v2/DropNamespaceExec.scala Review comment: Happy to remove / cut down this large comment block. If anybody has suggestions, please let me know. -- 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]
