[CT-3149] [Implementation] allow source freshness to be evaluated from warehouse metadata tables, instead of running select max(loaded_at_field) ... SQL queries #8704
Labels
enhancement
New feature or request
Impact: Adapters
user docs
[docs.getdbt.com] Needs better documentation
Housekeeping
Short description
From #7012
We should allow source freshness metadata to be collected from warehouse metadata tables when possible.
In this case, the
loaded_at_field
becomes optional for source freshness configuration:loaded_at_field
, we will use the SQL queryselect max(loaded_at_field) ... from ...
loaded_at_field
, we will get the source freshness from the warehouse metadata tableloaded_at_field
while using an adapter without metadata support we will raise a warningA significant benefit is that it doesn't rely on a specific column being consistently available - it provides a more generic implementation for the masses.
Acceptance criteria
database
,schema
,identifier
,last_modified
, andsnapshotted_at
. By accepting a list, we will allow core to batch metadata-freshness requests in the future.loaded_at_field
from freshness config.Impact to Other Teams
Impact adapters
Will backports be required?
No
Context
No response
The text was updated successfully, but these errors were encountered: