DropNamespace Unary Logical Command¶
DropNamespace is a unary logical command.
DropNamespace is resolved to DropNamespaceExec physical operator by DataSourceV2Strategy execution planning strategy.
spark.sql.legacy.useV1Command
With spark.sql.legacy.useV1Command enabled (default: false), DropNamespace is resolved to DropDatabaseCommand logical command by ResolveSessionCatalog logical resolution rule.
Creating Instance¶
DropNamespace takes the following to be created:
- Namespace LogicalPlan
-
ifExistsflag -
cascadeflag
DropNamespace is created when:
AstBuilderis requested to parse DROP NAMESPACE SQL statement