Assume we have a toy project with 1 model, 1 snapshot and 1 selector.
-- models/foo.sql
{{ config(tags='my_tag') }}
select 1 as id
-- snapshots/bar.sql
{% snapshot bar %}
{{
config(
target_schema='analytics',
unique_key='id',
strategy='check',
check_cols='all',
tags='my_tag'
)
}}
select 1 as id
{% endsnapshot %}
# selectors.yml
selectors:
- name: only_my_tag
definition:
tag: my_tag
--selector
uses the selectors.yml
file.
--select
does not.
this is awesome, thank you for explaining @jeremyyeo !