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

Explain behavior of config.get #6611

Merged
merged 8 commits into from
Dec 9, 2024
Merged

Explain behavior of config.get #6611

merged 8 commits into from
Dec 9, 2024

Conversation

dbeatty10
Copy link
Contributor

@dbeatty10 dbeatty10 commented Dec 6, 2024

resolves #3969

What are you changing in this pull request and why?

Details in #3969

TLDR

The key insight is that many people expect config.get("foo", default="bar") to act like coalesce in SQL, but it does not.

There are cases where users will want to use an alternative value whenever config.get("something") is None (similar to coalesce in SQL). This PR documents how to do that.

Checklist


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

Copy link

vercel bot commented Dec 6, 2024

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

Name Status Preview Updated (UTC)
docs-getdbt-com 🛑 Canceled (Inspect) Dec 9, 2024 9:52am

@github-actions github-actions bot added the content Improvements or additions to content label Dec 6, 2024
@dbeatty10 dbeatty10 marked this pull request as ready for review December 6, 2024 23:58
@dbeatty10 dbeatty10 requested a review from a team as a code owner December 6, 2024 23:58
@github-actions github-actions bot added the size: small This change will take 1 to 2 days to address label Dec 6, 2024
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.

made some small typos and looks good! thanks @dbeatty10 !

@mirnawong1 mirnawong1 enabled auto-merge December 9, 2024 09:50
@mirnawong1 mirnawong1 merged commit 66509e8 into current Dec 9, 2024
9 checks passed
@mirnawong1 mirnawong1 deleted the dbeatty10-patch-2 branch December 9, 2024 09:52
@dbeatty10
Copy link
Contributor Author

made some small typos and looks good! thanks @dbeatty10 !

@mirnawong1 thank you so much for fixing this up 🧠 !

For such a small PR, I sure had a high density of typos 😅 -- thanks for having my back and getting it on track! 🛤️

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.

Explain behavior of config.get
2 participants