Complete the code to define a source freshness check in dbt.
sources:
- name: my_source
freshness:
[1]: 24 hoursThe warn_after key defines the time after which dbt will warn if the source data is stale.
Complete the code to set an error threshold for source freshness in dbt.
sources:
- name: my_source
freshness:
warn_after: 24 hours
[1]: 48 hoursThe error_after key sets the time after which dbt will fail the run if the source data is too stale.
Fix the error in the freshness check configuration.
sources:
- name: sales_data
freshness:
warn_after: 12 hours
[1]: 6 hoursThe error_after value must be greater than warn_after. Here, 6 hours is less than 12 hours, so the error threshold should be set correctly.
Fill both blanks to create a source freshness check with a warning after 1 day and error after 2 days.
sources:
- name: user_data
freshness:
[1]: 1 day
[2]: 2 dayswarn_after sets the warning threshold, and error_after sets the error threshold for freshness checks.
Fill all three blanks to define a source freshness check with a warning after 6 hours, error after 12 hours, and a filter condition.
sources:
- name: orders
freshness:
[1]: 6 hours
[2]: 12 hours
filter: "[3]"The warn_after and error_after keys set freshness thresholds, and the filter applies a condition to the source data freshness check.