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

FEATURE: Easy opt-in for more useful schema name generation behavior. #855

Open
randypitcherii opened this issue Nov 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@randypitcherii
Copy link

Describe the feature

Most dbt users would benefit from a change in the default dbt behavior around schema names

Current Behavior: dbt prepends your default schema to your schema override config (if any).

Desired Behavior: dbt uses just the default schema in development and CI jobs, but treats the defaults schema as a fallback in production.

Describe alternatives you've considered

The current best approach is to have users individually override the generate_schema_name macro themselves with this behavior.

See here for the example I personally use.

Additional context

I could see this being useful as a project.yml config that users could set to true to opt in to this behavior.

That would keep this from being a breaking change for folks that don't know or care about this while also removing the need for users to get into the macro overriding business 💼

Who will this benefit?

Users that deploy in both dev and production environments and don't like surprises.

Are you interested in contributing this feature?

YES! I'd build it all out if you just let me know how you'd like the opt in to work or any other design concerns you have ♥️

@randypitcherii randypitcherii added the enhancement New feature or request label Nov 25, 2024
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

No branches or pull requests

1 participant