Based on the dbt documentation, we should be able to select specific models within a certain path.
dbt run --select myproject/models/abc/mymodel.py
However this does not work for me, I get this error:
The selection criterion 'myproject/models/abc/mymodel.py' does not match any nodes
I am using dbt python models in case that matters.
My dbt project tree sample:
├── models
│ ├── other.py
│ ├── other2.py
│ ├── config.yml
│ └── abc
│ ├── config.yml
│ └── mymodel.py
So it seems we need to define it like this:
dbt run --select abc.mymodel
This is working for me (dbt python model)