Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docs/configuration/selecting-excluding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ The ``select`` and ``exclude`` parameters are lists, with values like the follow
- ``source:my_source.my_table``: include/exclude nodes that have the source ``my_source`` and the table ``my_table``
- ``exposure:my_exposure``: include/exclude nodes that have the exposure ``my_exposure`` and are of resource_type ``exposure``
- ``exposure:+my_exposure``: include/exclude nodes that have the exposure ``my_exposure`` and their parents
- ``fqn:some_model``: include/exclude nodes based on their fully qualified names (FQN), which consist of the project name, folder path, and model name. For example, ``fqn:my_dbt_project.analytics.tables.my_model`` selects the model ``my_model`` in the ``analytics/tables`` folder of the ``my_dbt_project`` project.
- ``package:package_name``: include/exclude all nodes that belong to the given package (e.g. ``package:dbt_artifacts``). The package name must be non-empty (use ``package:dbt_artifacts``, not ``package:``).
- ``package:package_name+``: include/exclude all nodes in the package and their descendants (children).
- ``+package:package_name``: include/exclude all nodes in the package and their ancestors (parents).
Expand Down Expand Up @@ -78,7 +79,6 @@ Examples:
)
)


.. code-block:: python

from cosmos import DbtDag, RenderConfig
Expand Down Expand Up @@ -132,6 +132,19 @@ Examples:
)
)

.. code-block:: python

from cosmos.airflow.dag import DbtDag
from cosmos.config import RenderConfig
Comment thread
pankajastro marked this conversation as resolved.

jaffle_shop = DbtDag(
render_config=RenderConfig(
select=[
"fqn:jaffle_shop.analytics.tables.my_model"
], # selects models by fully qualified name
)
)

Using ``selector``
--------------------------------
.. note::
Expand Down