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

Some macros still uses dbt_utils instead of dbt_core #195

Closed Karol-Dluzniewski closed 1 year ago

Karol-Dluzniewski commented 1 year ago

Unfortunately some tests still raises warnings about macros being deprecated from dbt_utils in favor of dbt_core.

integration tests shows this as Warning but with non-warning level. https://app.circleci.com/pipelines/github/calogica/dbt-expectations/81/workflows/2c35d751-e66e-4ddd-a82a-a67033a7412e/jobs/60/parallel-runs/0/steps/0-107

Same errors occurs on my project

clausherther commented 1 year ago

Hi @Karol-Dluzniewski - those deprecation warnings are only during the parsing phase and it's b/c dbt-utils didn't wrap the deprecation code with an if execute. They go away on a subsequent run. Re: the warning, that's unrelated and you can ignore. It has to do with the flakiness of the random data generated for the test.

clausherther commented 1 year ago

(fyi, re: the deprecation warnings: https://getdbt.slack.com/archives/CU4MRJ7QB/p1661781392884549?thread_ts=1661487856.978139&cid=CU4MRJ7QB)