[Regression] Parsing error on dbt-core==1.10.0-a1
when models have a freshness
config (that follows the source freshness format). dbt-core~=1.9.0
and prior simply ignored the invalid config.
#11212
Labels
Is this a regression in a recent version of dbt-core?
Current Behavior
On the
main
branch (8a8857a as of this writing) - we're running into a parsing error when models have a freshness config. Note that models definitely do not have "freshness" like sources do so the behaviour is kinda correct (see updated comment below - we decided to support model freshness but the format is not the same as source freshness - thus we added validation for this config when there wasn't one before) - but it just so happen that previously (dbt-core <= 1.9.0) simply ignored thefreshness
config when applied to models and now it is throwing a parsing error.Users on "latest" in dbt Cloud are suddenly running into this error when they previously did not.
Expected/Previous Behavior
I think it's up to ya'll maintainers to determine the right behaviour but perhaps you want to revert checking that models have an incorrect config
freshness
- so just make it ignore like previous dbt versions. Or you want to gate this behaviour around a behaviour change flag - (not great for the ever growing matrix of behaviour change flags that we need to maintain). Or perhaps this should have been a "warning" (msg: configfreshness
is invalid for models) instead of an "parsing error" which breaks runs completely.Steps To Reproduce
main
.Relevant log output
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
No response
The text was updated successfully, but these errors were encountered: