Question 1. dbt Lineage and Execution
Given a dbt project with the following structure:
models/
├── staging/
│ ├── stg_green_tripdata.sql
│ └── stg_yellow_tripdata.sql
└── intermediate/
└── int_trips_unioned.sql (depends on stg_green_tripdata & stg_yellow_tripdata)
If you run dbt run --select int_trips_unioned, what models will be built?
stg_green_tripdata, stg_yellow_tripdata, and int_trips_unioned (upstream dependencies)int_trips_unionedint_trips_unioned onlyint_trips_unioned, int_trips, and fct_trips (downstream dependencies)Question 2. dbt Tests
You've configured a generic test like this in your schema.yml:
columns:
- name: payment_type
data_tests:
- accepted_values:
arguments:
values: [1, 2, 3, 4, 5]
quote: false
Your model fct_trips has been running successfully for months. A new value 6 now appears in the source data.
What happens when you run dbt test --select fct_trips?