Closed rubenhelsloot closed 7 months ago
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 want to compare two materialized views built using DBT, but when I run
data-diff --dbt --select <my model>
, I get "New model or no access to prod table." The reason is that is that in Postgres, materialized views are not stored in theinformation_schema.columns
schema, which is what is queried by data-diff to find the column:Instead, we'd need to query
pg_matviews
, as noted in this StackOverflow answer.I figure we could solve this issue by unioning the first query with another one that queries
pg_matviews
.Describe the environment I'm running data-diff v0.11.0 with dbt-core and dbt-postgres 1.7.7 on Postgres 15.