calogica / dbt-expectations

Port(ish) of Great Expectations to dbt test macros

Home Page:https://calogica.github.io/dbt-expectations/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Add variable for row_cnt for expect_row_values_to_have_data_for_every_n_datepart test

sanoosha opened this issue · comments

Is your feature request related to a problem? Please describe.
I need a test to check that my table has more than 5 rows per date part. There are cases where the row count of the table can go down per date part.

Describe the solution you'd like
If I can add a parameter for row_cnt I could say that the row count should never be less than 5 or 10.

Describe alternatives you've considered
I am currently using the test using the row_cnt = 0 condition. I have thought about using the expect_table_row_count_to_be_between test, however, this does not specify data for each date part.

Additional context
I can help write this Pull Request if needed.