dbt-labs / dbt-labs/docs.getdbt.com

Coordination of `deprecation-date` and table expiration on BigQuery

Open
#3,765 0 comments 0 reactions 1 assignee Claimed by @dbeatty10 View on GitHub
content dbt-core v1.6 improvement
Dominant language
JavaScript
Stars
215
Forks
1.2k
Avg merge
1d 15h
Merged PRs (30d)
130

Description

### Contributions

- [X] I have read the contribution docs, and understand what's expected of me.

### Link to the page on docs.getdbt.com requiring updates

https://docs.getdbt.com/reference/resource-properties/deprecation_date

### What part(s) of the page would you like to see updated?

> setting a model to expire 48 hours after its `deprecation_date`

☝️ Explain how to do this within dbt using the [`datetime`](https://docs.getdbt.com/reference/dbt-jinja-functions/modules#datetime) module

### Additional information

dbt-bigquery can set an [`hours_to_expiration`](/reference/resource-configs/bigquery-configs#controlling-table-expiration) that translates to `expiration_timestamp` within BigQuery.

dbt does not automatically synchronize `deprecation_date` and `hours_to_expiration`, but users may want to coordinate them in some fashion (such as setting a model to expire 48 hours after its `deprecation_date`). Expired tables in BigQuery will be deleted and their storage reclaimed.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.