Skip to content

dbt-materialize: make strict_mode schema isolation fire for views, materialized views and tables - #38063

Draft
bobbyiliev wants to merge 1 commit into
MaterializeInc:mainfrom
bobbyiliev:dbt-strict-mode-schema-isolation
Draft

dbt-materialize: make strict_mode schema isolation fire for views, materialized views and tables#38063
bobbyiliev wants to merge 1 commit into
MaterializeInc:mainfrom
bobbyiliev:dbt-strict-mode-schema-isolation

Conversation

@bobbyiliev

Copy link
Copy Markdown
Contributor

The strict_mode check that keeps views, materialized views and tables out of schemas reserved for sources, source tables and sinks never actually ran, because the flags it set inside a Jinja loop were dropped when the loop ended. This moves the flags into a namespace so the check works, and adds tests that build only the blocked model so each direction of the rule is covered on its own.

Test plan: added three cases to test_strict_mode.py that select just the view and assert the error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant