Using dbt 0.20.x and below, the command dbt run --select model_name fails.
It shows the error Runtime Error. Could not find selector named model_name, expected one of [] Code: 10001.
In dbt 0.21.0, the node selection syntax was standardised to use --select everywhere. Before this, some commands like dbt run and dbt test used --models instead.
Older versions show the error because argparse is expanding --select to --selector, a different flag.
To fix this issue, either upgrade to dbt 0.21.0 or higher or use --models instead of --select.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With