dchvn opened a new pull request #35202: URL: https://github.com/apache/spark/pull/35202
### What changes were proposed in this pull request? This PR migrates `DROP NAMESPACE` to use V2 command by default. ### Why are the changes needed? It's been a while since we introduced the v2 commands, and it seems reasonable to use v2 commands by default even for the session catalog, with a legacy config to fall back to the v1 commands. ### Does this PR introduce _any_ user-facing change? The error message will be different if drop database containing tables with RESTRICT mode when v2 command is run against v1 catalog and Hive Catalog: Before: `Cannot drop a non-empty database` vs. After: `Cannot drop a non-empty namespace` ### How was this patch tested? Existing *DropNamespaceSuite tests -- 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]
