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

Extend Readme with an example of single model run #35

Open
FlorianK13 opened this issue Jun 14, 2023 · 1 comment
Open

Extend Readme with an example of single model run #35

FlorianK13 opened this issue Jun 14, 2023 · 1 comment

Comments

@FlorianK13
Copy link

Hi, first of all thanks for this great addon to dbt. I have one small thing that could be added to the Readme.

Is there a possibility to run the dbt-invoke properties --models command to produce a .yml file for one specific model placed in a subfolder. For example: My model is located at models/marts/folder_a/model_a.sql, what is the command to produce the models/marts/folder_a/model_a.yml file?

@robastel
Copy link
Member

Good catch, thanks for submitting this issue!

It would look like: dbt-invoke properties --models model_a

dbt requires unique model names, so it is the same command whether it is in a subfolder or directly in the models folder.

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