Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rephrase the two criteria for resolving ref calls with the --defer flag #6660

Merged
merged 7 commits into from
Dec 13, 2024

Conversation

dbeatty10
Copy link
Contributor

@dbeatty10 dbeatty10 commented Dec 13, 2024

resolves #6332

What are you changing in this pull request and why?

There's a ton more detail in #6332, but the TLDR is:

  • --defer, --state, and --favor-state are tricky, so we want to make it as easy to understand as possible.

🎩

The proposed text is as follows:

Usage

By default, dbt uses the target namespace to resolve ref calls.

But with --defer, dbt will use the state manifest instead if the following criteria are met:

  1. The node isn’t in the selected nodes and
  2. It doesn’t exist in the database (or --favor-state is used).

Favor state

If --favor-state is passed, dbt will favor the node definition from the --state directory, unless that node is also included among the selected nodes.

Checklist


🚀 Deployment available! Here are the direct links to the updated files:

Copy link

vercel bot commented Dec 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Dec 13, 2024 10:01am

@github-actions github-actions bot added content Improvements or additions to content size: small This change will take 1 to 2 days to address labels Dec 13, 2024
@dbeatty10 dbeatty10 marked this pull request as ready for review December 13, 2024 00:38
@dbeatty10 dbeatty10 requested a review from a team as a code owner December 13, 2024 00:38
Copy link
Contributor

@mirnawong1 mirnawong1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for the context @dbeatty10 , some small tweaks and looks great!

@mirnawong1 mirnawong1 merged commit 4d7b043 into current Dec 13, 2024
9 checks passed
@mirnawong1 mirnawong1 deleted the dbeatty10-patch-1 branch December 13, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content size: small This change will take 1 to 2 days to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rephrase the two criteria for resolving ref calls with the --defer flag
2 participants