dbt-labs / metricflow

MetricFlow allows you to define, build, and maintain metrics in code.
https://docs.getdbt.com/docs/build/about-metricflow
Other
1.12k stars 92 forks source link

Updated error message for validation tasks #1338

Closed WilliamDee closed 1 month ago

WilliamDee commented 1 month ago

Context

Currently, in dwh validations for dimensions, we query all the dimensions in 1 query and if that fails we attempt to query each dimension one by one. However, with time dimension, we end up querying multiple variants of a singular dimension (ie., ordered_at expands to querying ordered_at__week, ordered_at__month, etc...), but the error message only used the element_ment. This meant in the error, we ended up seeing "duplicates", but it was actually just querying each one of those variants. With this, we should use the qualfiied name to see what we're actually querying for

Example:

Screenshot 2024-07-15 at 10 33 32 PM