[Feature] Support Jinja within custom dbt_valid_to_current
configurations
#10922
Labels
enhancement
New feature or request
snapshots
Issues related to dbt's snapshot functionality
triage
user docs
[docs.getdbt.com] Needs better documentation
Is this your first time submitting a feature request?
Describe the feature
As originally proposed within #10187, allow config for
dbt_valid_to_current
to contain Jinja in bothschema.yml
files anddbt_project.yml
:{{ dbt.date(9999, 12, 31) }}
{{ var('my_future_date') }}
Examples:
Macro that returns a SQL statement
models/my_model.sql
snapshots/_snapshots.yml
Project variable that returns a SQL statement
dbt_project.yml
snapshots/_snapshots.yml
Project variable that returns a Jinja expression
In my personal ideal world, this would also work, but we officially do not support Jinja within vars. However, I seem to recall that it may actually work in certain cases. So we may choose for or against this (or allow it to "accidentally" work rather than be intentionally supported).
dbt_project.yml
Jinja within
dbt_project.yml
dbt_project.yml
Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: