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)
-
ifNotExistsflag - Properties (
Map[String, String])
CreateNamespace is created when:
AstBuilderis 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 |