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

Specify format for external models globally #387

Closed
sergun opened this issue Apr 23, 2024 · 2 comments
Closed

Specify format for external models globally #387

sergun opened this issue Apr 23, 2024 · 2 comments

Comments

@sergun
Copy link

sergun commented Apr 23, 2024

How to specify globally in yml configs (not in *.sql files) format (e.g. format="json") to be used for external models ?

@jwills
Copy link
Collaborator

jwills commented Apr 23, 2024

Does this not work? https://docs.getdbt.com/reference/model-configs

@sergun
Copy link
Author

sergun commented Apr 23, 2024

@jwills
Thanks! Yes, it does.

Sorry, it was my mistake. Configurations like:

models:
  hc:
    +materialized: external
    format: json

in dbt_project.yml work perfectly.

@sergun sergun closed this as completed Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants