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

Configure which schemas models are materialized in #284

Closed
drewbanin opened this issue Feb 9, 2017 · 5 comments
Closed

Configure which schemas models are materialized in #284

drewbanin opened this issue Feb 9, 2017 · 5 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@drewbanin
Copy link
Contributor

Semi-related: #198

This would be useful for both organization and permission configuration

@drewbanin drewbanin added the enhancement New feature or request label Feb 9, 2017
@clausherther
Copy link
Contributor

+1!

@atharvai
Copy link

This would be great to have in addition to default target as right now in profiles.yml .

I imagine this to be something like a configuration value for model.

{{
  config(
    materialized = 'table',
    schema = 'dbt'
  )
}}```

`schema` keyword is also used for `schema.yml` but should be clear enough from context what is being referenced.

@adamhaney
Copy link

Would it be possible to pass the schema as either a string or a dictionary that was keyed on target name (ie, dev/prod) this would potentially allow for schema targets to be configured without breaking multiple environments?

@igrayson
Copy link
Contributor

This directly approaches my use case @ https://getdbt.slack.com/archives/C0VLZM3U2/p1497459181879656

@drewbanin drewbanin modified the milestone: 0.8.3 Jun 20, 2017
@drewbanin drewbanin modified the milestones: 0.8.3, 0.8.4 Jun 30, 2017
@drewbanin drewbanin self-assigned this Aug 31, 2017
@drewbanin
Copy link
Contributor Author

Happy to report that this has been merged into development and will be available in dbt 0.9.0.

We'll be publishing our second 0.9.0 alpha release (including this feature) in the next day or two -- please let me know if you're interesting in trying it out!

Relevant docs: https://dbt.readme.io/v0.9/docs/using-custom-schemas

@drewbanin drewbanin added this to the 0.9.0 alpha-2 milestone Sep 20, 2017
yu-iskw pushed a commit to yu-iskw/dbt that referenced this issue Aug 17, 2021
Schema Test - Not accepted values, test fixed

empty lines at the end

Update changelog
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

5 participants