You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2024. It is now read-only.
Describe the bug
I'm using the --dbt flag with Snowflake. Versions 0.7.8 and beyond don't diff the correct prod_database that is configured in dbt_project.yml. Works fine in v0.7.7 and earlier.
Running with data-diff=0.7.8 (Update 0.7.14 is available!)
TEST_PDP.ANALYTICS_BASE.PAXOS_TOKENS_MKT_CAP_DAILY <> TEST_PDP.ANALYTICS_BASE.PAXOS_TOKENS_MKT_CAP_DAILY
No row differences
- Notice above that it is using `TEST_PDP` instead of the correct prod database of `PROD_PDP`
{% macro generate_database_name(custom_database_name=none, node=none) -%}
{%- set default_database = target.database -%}
{%- if custom_database_name is none -%}
{{ default_database }}
{%- else -%}
{{ custom_database_name | trim }}
{%- endif -%}
{%- endmacro %}
Using data-diff in the config based setup follows similar logic to dbt's above. prod_database: represents the default_database for the prod target, which is overridden when a custom database is set in a model config or the dbt_project.yml
I'm a little hesitant to change this as we'll never be able to cover all of the edge cases
This issue has been marked as stale because it has been open for 60 days with no activity. If you would like the issue to remain open, please comment on the issue and it will be added to the triage queue. Otherwise, it will be closed in 7 days.
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment and it will be reopened for triage.
Describe the bug
I'm using the
--dbt
flag with Snowflake. Versions 0.7.8 and beyond don't diff the correctprod_database
that is configured indbt_project.yml
. Works fine in v0.7.7 and earlier.Useful info:
data-diff --dbt
dbt_project.yml
configuration:Likely cause:
In the changelog for v0.7.7 --> v0.7.8, I see this change in how the
prod_database
is set, so I'm thinking this change could be the cause (lines 141-147): v0.7.7...v0.7.8#diff-8a5550cee0de299f3906d3b40b82bec419ce23c065b04923c3638906b21bda70R141-R147The text was updated successfully, but these errors were encountered: