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
To support this pattern with sources (and probably other "yaml-only" resource types), I believe we'd need to also do the work of treating database + schema + identifier/alias as configs, such that we can save their unrendered values when configs are calculated. In theory, that's happening here, but it doesn't work as I'd expect for the one actual source config we do support today, enabled.
I want to point to a different locations for my sources depending on the environment I am in (different database for prod vs. dev). To do so, I configure my sources as follows:
graciegoheen
changed the title
environment-aware logic for sources should not cause sources to always be marked as modified
[vars] environment-aware logic for sources should not cause sources to always be marked as modified
Feb 14, 2024
graciegoheen
changed the title
[vars] environment-aware logic for sources should not cause sources to always be marked as modified
environment-aware logic for sources should not cause sources to always be marked as modified
Feb 14, 2024
graciegoheen
changed the title
environment-aware logic for sources should not cause sources to always be marked as modified
[env_vars] environment-aware logic for sources should not cause sources to always be marked as modified
Feb 14, 2024
graciegoheen
changed the title
[env_vars] environment-aware logic for sources should not cause sources to always be marked as modified
[env_vars] [false positives] environment-aware logic for sources should not cause sources to always be marked as modified
Feb 14, 2024
Originally posted by @jtcohen6 in #9563 (comment)
I want to point to a different locations for my sources depending on the environment I am in (different database for
prod
vs.dev
). To do so, I configure my sources as follows:But, this counts as a modified change everytime I do
--select state:modified
comparing two different environments.Instead, I tried putting this logic in
dbt_project.yml
:and that did not work, as it seems the only configuration that is available to sources in the
dbt_project.yml
isenabled
- docs here.Acceptance Criteria
env_var
s in my configuration, and the resource should not always be marked as modifiedWe should open a separate ticket to handle env_vars for other resources
Relevant to #4304
The text was updated successfully, but these errors were encountered: