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
-
ifExists
flag -
cascade
flag
DropNamespace
is created when:
AstBuilder
is requested to parse DROP NAMESPACE SQL statement