-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow customizing names of metadata fields in snapshots #10185
Comments
up vote! this should have been considered already at implementation... |
We need to think a bit about migration:
Idea from @aranke : add comment to the |
Migration Example:
|
Opened a new issue in dbt-labs/docs.getdbt.com: dbt-labs/docs.getdbt.com#6112 |
{{
}} Running dbt-core = 1.7.18 with snowflake = 1.7.5 snapshot completed with no error but column didn't changed. |
@GRVsati Hi! To avoid any unintentional data modification, dbt will not automatically apply any column renames. So if a user applies |
From #9848
Description
There are a handful of Snapshot meta fields:
dbt_valid_from
dbt_valid_to
dbt_scd_id
dbt_updated_at
These are fields dbt creates when creating the snapshot.
Folks want the ability to rename these meta fields - “I want to rename
dbt_valid_from
tograce_valid_from
”- because of some corporate standardCustomers currently have to create a view on top of the snapshot
We should instead provide the ability to rename these meta fields within the actual snapshot configuration.
draft of YML config:
Open questions/thoughts:
Acceptance Critera
dbt_field_name_overrides
adapters.get_columns_in_relation()
on the existing snapshot and comparing the meta fields that exist in the current config to what exists in the warehouseThe text was updated successfully, but these errors were encountered: