DropNamespaceExec Physical Command¶
DropNamespaceExec is a leaf V2CommandExec that represents a DropNamespace logical operator at execution.
Creating Instance¶
DropNamespaceExec takes the following to be created:
- CatalogPlugin
- Namespace (
Seq[String]) -
ifExistsflag -
cascadeflag
DropNamespaceExec is created when:
- DataSourceV2Strategy execution planning strategy is executed (to plan DropNamespace logical operator)
Executing Command¶
run requests the CatalogPlugin for SupportsNamespaces representation.
run asks the CatalogPlugin (as a SupportsNamespaces) if the namespace exists and, if so, drops it.
Empty collection returned
run returns an empty collection (no value).