Graph operators
The "plus" operator
If placed at the front of the model selector, +
will select all parents of the selected model. If placed at the end of the string, +
will select all children of the selected model.
The "n-plus" operator
▶Changelog
You can adjust the behavior of the +
operator by quantifying the number of edges
to step through.
The "at" operator
The @
operator is similar to +
, but will also include the parents of the children of the selected model. This is useful in continuous integration environments where you want to build a model and all of its children, but the parents of those children might not exist in the database yet. The selector @snowplow_web_page_context
will build all three models shown in the diagram below.
$ dbt run --models @my_model # select my_model, its children, and the parents of its children
The "star" operator
The *
operator matches all models within a package or directory.