dbt-labs / dbt-codegen

Macros that generate dbt code
https://hub.getdbt.com/dbt-labs/codegen/latest/
Apache License 2.0
462 stars 101 forks source link

On hub.getdbt.com you've got an error in arguments of generate_model_yaml (model_names not model_name) #176

Open elycenok-wowcorp opened 1 month ago

elycenok-wowcorp commented 1 month ago

Describe the bug

see issue header

Steps to reproduce

so I tried to run the very first command example (no matter if it was from the wrong macro description) and it failed

dbt --quiet run-operation generate_model_yaml --args '{"model_name": "stg_jaffle_shop__orders"}' > models/staging/jaffle_shop/stg_jaffle_shop__orders.yml

from here https://hub.getdbt.com/dbt-labs/codegen/latest/

(something like model_name is the wrong parameter of macro generate_model_yaml

elycenok-wowcorp commented 1 month ago

and I was going to give up and abandon this dbt package