calogica / dbt-expectations

Port(ish) of Great Expectations to dbt test macros
https://calogica.github.io/dbt-expectations/
Apache License 2.0
1.04k stars 126 forks source link

expect_grouped_row_values_to_have_recent_data is not correctly applying groupings #206

Closed clausherther closed 1 year ago

clausherther commented 1 year ago

expect_grouped_row_values_to_have_recent_data is supposed to check whether grouping levels have recent data. However, group_by is only applied during the initial aggregation step, but not during the subsequent join.