Skip to content

CreateMaterializedViewAsSelect Logical Operator

CreateMaterializedViewAsSelect is a CreatePipelineDatasetAsSelect binary logical command that represents CREATE MATERIALIZED VIEW ... AS (Spark SQL) SQL statement in Spark Declarative Pipelines framework.

CreateMaterializedViewAsSelect is handled by SqlGraphRegistrationContext.

Creating Instance

CreateMaterializedViewAsSelect takes the following to be created:

  • Name (LogicalPlan (Spark SQL))
  • Columns (ColumnDefinitions)
  • Partitioning (Transform (Spark SQL))
  • TableSpecBase
  • Query (LogicalPlan (Spark SQL))
  • SQL Text
  • ifNotExists flag

CreateMaterializedViewAsSelect is created when:

  • SparkSqlAstBuilder (Spark SQL) is requested to parse CREATE MATERIALIZED VIEW ... AS SQL statement