CreateNamespace Unary Logical Operator¶
CreateNamespace
is a unary logical operator (UnaryCommand
) that represents the following high-level operator in logical query plans:
- CREATE NAMESPACE SQL command
Creating Instance¶
CreateNamespace
takes the following to be created:
- Name (LogicalPlan)
-
ifNotExists
flag - Properties (
Map[String, String]
)
CreateNamespace
is created when:
AstBuilder
is requested to parse CREATE NAMESPACE command
Resolution Rules¶
CreateNamespace
is resolved using the following resolution rules:
Resolution Rule | Operator |
---|---|
ResolveSessionCatalog logical analysis rule for the session catalog (spark_catalog ) | CreateDatabaseCommand logical command |
DataSourceV2Strategy execution planning strategy | CreateNamespaceExec physical command |