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

Create a new safe divide cross db macro #679

Closed
graciegoheen opened this issue Sep 19, 2022 · 1 comment · Fixed by #697
Closed

Create a new safe divide cross db macro #679

graciegoheen opened this issue Sep 19, 2022 · 1 comment · Fixed by #697
Labels
enhancement New feature or request

Comments

@graciegoheen
Copy link
Contributor

graciegoheen commented Sep 19, 2022

Describe the feature

I want to add a "safe divide" cross db macro (like DIV0 in snowflake) to prevent errors when dividing by 0.

Describe alternatives you've considered

Additional context

Who will this benefit?

Package developers - we're currently using nullif() on the denominator in dbt_project_evaluator package and would like to replace this with a simple safe divide macro.

Are you interested in contributing this feature?

Yes. I, @angelica-lastra, and @deanna-minnick will be collaborating on this!

@graciegoheen graciegoheen added enhancement New feature or request triage labels Sep 19, 2022
@joellabes joellabes removed the triage label Sep 19, 2022
@joellabes
Copy link
Contributor

We talked about this internally - excited to see it come together!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants