Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowflake source freshness #5228

Merged
merged 5 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion website/docs/docs/deploy/source-freshness.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ It's important that your freshness jobs run frequently enough to snapshot data l

## Further reading

Refer to [Artifacts](/docs/deploy/artifacts) for more info on how to create dbt Cloud artifacts, share links to the latest documentation, and share source freshness reports with your team.
- Refer to [Artifacts](/docs/deploy/artifacts) for more info on how to create dbt Cloud artifacts, share links to the latest documentation, and share source freshness reports with your team.
- Source freshness for Snowflake is calculated using the `LAST_ALTERED` column. Read about the limitations in [Snowflake configs](/reference/resource-configs/snowflake-configs#source-freshness-known-limitation).
14 changes: 14 additions & 0 deletions website/docs/reference/resource-configs/snowflake-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,3 +479,17 @@ The workaround is to execute `DROP TABLE my_model` on the data warehouse before
</VersionBlock>

</VersionBlock>


## Source freshness known limitation

Snowflake source freshness is calculated using information from the `LAST_ALTERED` column.
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved

Per the [Snowflake documentation](https://docs.snowflake.com/en/sql-reference/info-schema/tables#usage-notes):

>The `LAST_ALTERED` column is updated when the following operations are performed on an object:
>- DDL operations.
>- DML operations (for tables only).
>- Background maintenance operations on metadata performed by Snowflake.

This means that Snowflake source frehssness is determined by a field that is updated when any object is updated, not just data updates. There is no action that needs to be taken, but analytics teams should note this caveat.
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved
Loading