dbt-labs / dbt-semantic-interfaces

The shared semantic layer definitions that dbt-core and MetricFlow use.
Apache License 2.0
66 stars 13 forks source link

Added validations for conversion metrics #220

Closed WilliamDee closed 9 months ago

WilliamDee commented 9 months ago

Resolves #211

Description

Added validations for conversion metric configs.

Rules pulled from #211

  1. entity must exist in both the semantic models that the base_measure and conversion_measure are in
  2. base_measure and conversion_measure must be valid and can only be SUM(1) or COUNT or DISTINCT_COUNT measures
  3. In constant_properties, both property that is stated must be referencing either an existing dimension/entity in the respective base/conversion semantic model

Checklist