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

Default granularity bug fix: handle time dimensions with the same name #305

Closed courtneyholcomb closed 2 months ago

courtneyholcomb commented 2 months ago

Description

Found another bug in SetDefaultGranularityRule. If there are multiple agg_time_dimensions with the same name across semantic models, and they have different granularities, we'll only check one. Fixed here!

Checklist