CreateMaterializedViewAsSelect Logical Operator¶
CreateMaterializedViewAsSelect is a CreatePipelineDatasetAsSelect binary logical command that represents CREATE MATERIALIZED VIEW ... AS SQL statement in Spark Declarative Pipelines framework.
CreateMaterializedViewAsSelect is handled by SqlGraphRegistrationContext.
Creating Instance¶
CreateMaterializedViewAsSelect takes the following to be created:
- Name (LogicalPlan)
- Columns (
ColumnDefinitions) - Partitioning (Transform)
-
TableSpecBase - LogicalPlan
- SQL Text
-
ifNotExistsflag
CreateMaterializedViewAsSelect is created when:
SparkSqlAstBuilderis requested to parse CREATE MATERIALIZED VIEW ... AS SQL statement