Skip to content

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])
  • ifExists flag
  • cascade flag

DropNamespaceExec is created when:

Executing Command

V2CommandExec
run(): Seq[InternalRow]

run is part of the V2CommandExec abstraction.

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).