- Fixed timestamp comparisons in expect_grouped_row_values_to_have_recent_data by @clausherther in calogica#179
- Add example for dynamic date params in expect_row_values_to_have_data_for_every_n_datepart by @clausherther in calogica#174
- Fix take_diff syntax in moving stddev test by @karanhegde in calogica#178
Patch Release
- Fix
expect_compound_columns_to_be_uniqueto properly handleignore_row_ifby @clausherther in calogica#171
- Add automated integration testing with CircleCI in calogica#161
- Show
group_bycolumns in validation errors for column increasing test by @dluftspring in calogica#158 - Add
exclusion_conditiontoexpect_row_values_to_have_data_for_every_n_datepartby @gofford in calogica#141
- Set flakey integration tests to
warnin calogica#162
- Adds test for column presence by @rcaddell in calogica#149
- Fix emails.sql by @clausherther in calogica#153
- Fix expect_row_values_to_have_recent_data issues on bigquery by @clausherther in calogica#147
- @rcaddell made their first contribution in calogica#149
- Add
group_byparameter toexpect_column_values_to_be_increasingandexpect_column_values_to_be_decreasing(#146 @Lucasthenoob)
- Fix
expect_row_values_to_have_recent_datato use current timestamp by @MrJoosh in calogica#145 (also fixes https://github.com/calogica/dbt-expectations/issues/104)
- Add new
expect_column_values_to_have_consistent_casingtest by @agusfigueroa-htg in calogica#138
- Update README.md by @kdw2126 in calogica#134
- Fix documentation to note DBT 1.0.0 compatibility by @kdw2126 in calogica#136
- @kdw2126 made their first contribution in calogica#134
- @agusfigueroa-htg made their first contribution in calogica#138
- @MrJoosh made their first contribution in calogica#145
- Add better support for Redshift by typing implicit
varcharfields explicitly to strings. (#131 #132)
- adds full support for dbt 1.x without backwards compatability
- supports
dbt-date 0.5.0, which supportsdbt-utils 0.8.0
- Patch: adds support for dbt 1.x
- Append missing optional parameters documentation to README.md by @makotonium in calogica#124
- Fix missing group_by default value in string_matching macros by @samantha-guerriero-cko in calogica#126
- @makotonium made their first contribution in calogica#124
- @samantha-guerriero-cko made their first contribution in calogica#126
- Fix missing group by default value in string_matching macros (#126 by @samantha-guerriero-cko)
- Append missing optional parameters documentation to README.md (#124 by @makotonium)
- Add an optional argument to allow for intervals of
date_partinexpect_row_values_to_have_data_for_every_n_datepart. (#110 by @lewisarmistead)
- Fixed a regression introduced in 0.4.3 that made
expect_table_columns_to_match_ordered_listincomatible with Redshift (#123 by @mirosval)
- Replaced hardcoded value in
expect_column_to_existwith mapping call to provided transform filter and join to reduce list back to single value. (#118 @UselessAlias)
- Fixes incompatibility on Snowflake with use of
row_number()withoutorder byinexpect_table_columns_to_match_ordered_list(#112)
- Supports dbt 0.21.x
- Added
row_conditiontoexpect_grouped_row_values_to_have_recent_dataandexpect_row_values_to_have_recent_datato allow for partition filtering before applying the recency test (#106 w/ @edbizarro)
- Converted Jinja set logic to SQL joins to make it easier to follow and iterate in the future (#108)
-
expect_table_columns_to_match_listremove''to leave columns as numbers (#98) -
expect_table_columns_to_match_ordered_listnow explicitly casts the column list to a string type (#99) -
Fixes regex matching tests for Redshift by adding a Redshift specific adapter macro in
regexp_instr(#99 @mirosval)
-
Requires
dbt >= 0.20 -
Requires
dbt-date >= 0.4.0 -
Updates test macros to tests to support
dbt >= 0.20 -
Updates calls to adapter.dispatch to support
dbt >= 0.20(see Changes to dispatch in dbt v0.20 #78)
- Fix join in
expect_column_values_to_be_in_set(#91 @ahmedrad) - Add support for Redshift
randomfunction inrandmacro (#92 @ahmedrad)
- Remove unnecessary macro to fix issue with 0.19.2 (#88)
-
Added a new macro,
expect_row_values_to_have_data_for_every_n_datepart, which tests whether a model has values for every groupeddate_part.For example, this tests whether a model has data for every
day(grouped ondate_col) from either a specifiedstart_dateandend_date, or for themin/maxvalue of the specifieddate_col.tests: - dbt_expectations.expect_row_values_to_have_data_for_every_n_datepart: date_col: date_day date_part: day
-
Updated description of type check tests (#84 @noel)
-
Fixed
joinsyntax because Twitter induced guilt: https://twitter.com/emilyhawkins__/status/1400967270537564160 -
Bump version of dbt-date to
< 0.4.0(#85)
-
Added support for optional
min_valueandmax_valueparameters to all*_between_*tests. (#70) -
Added support for
strictlyparameter tobetweentests. If set toTrue,stricltychanges the operators>=and<=to>and<.For example, while
dbt_expectations.expect_column_stdev_to_be_between: min_value: 0
evaluates to
>= 0,dbt_expectations.expect_column_stdev_to_be_between: min_value: 0 strictly: True
- Corrected a typo in the README (#67)