CreateTableStatement¶
CreateTableStatement
is a ParsedStatement.
Creating Instance¶
CreateTableStatement
takes the following to be created:
- Multi-Part Table Name
- Table Schema
- Partitioning Transforms
- BucketSpec (optional)
- Properties
- Provider (optional)
- Options
- Location (optional)
- Comment (optional)
-
SerdeInfo
(optional) -
external
flag -
ifNotExists
flag
CreateTableStatement
is created when:
AstBuilder
is requested to parse CREATE TABLE statement
Logical Analysis¶
CreateTableStatement
is resolved to the following logical operators:
- CreateV2Table logical command (by ResolveCatalogs logical resolution rule)
- CreateTable or CreateTableAsSelect logical commands (by ResolveSessionCatalog logical resolution rule)