ViewHelper¶
Prepare Catalog View Definition¶
prepareTable(
session: SparkSession,
name: TableIdentifier,
originalText: Option[String],
analyzedPlan: LogicalPlan,
userSpecifiedColumns: Seq[(String, Option[String])],
properties: Map[String, String],
viewSchemaMode: ViewSchemaMode,
comment: Option[String],
collation: Option[String],
isMetricView: Boolean = false): CatalogTable
prepareTable creates a CatalogTable with the tableType being METRIC_VIEW for isMetricView enabled and VIEW otherwise.
prepareTable is used when:
- CreateMetricViewCommand logical command is executed (to register a metric view)
- CreateViewCommand logical command is executed