Skip to content

MetricViewPlanner

planRead

planRead(
  metadata: CatalogTable,
  yaml: String,
  sqlParser: ParserInterface,
  expectedSchema: StructType): MetricViewPlaceholder

planRead creates a MetricView (from the given yaml text).

In the end, planRead returns a MetricViewPlaceholder.


planRead is used when:

planWrite

planWrite(
  metadata: CatalogTable,
  yaml: String,
  sqlParser: ParserInterface): (MetricViewPlaceholder, MetricView)

planWrite creates a MetricView (from the given yaml text).

In the end, planWrite returns a MetricViewPlaceholder with isCreate flag enabled (to differentiate planWrite from planRead) and the MetricView.


planWrite is used when:

Create MetricView from YAML Definition File

parseYAML(
  yaml: String,
  sqlParser: ParserInterface): (MetricView, LogicalPlan)

parseYAML creates a MetricView from YAML definition.


parseYAML is used when: