While implementation of SCD Type 2 using dbt Timestamp & Check strategy .
Below Columns naming convention is getting populated .
dbt_updated_at, dbt_valid_from, dbt_valid_to, dbt_scd_id
Tried changing the macro for first time it works , second run it fails stating column missing .
Could you please share the link or guide how to override these naming convention in snapshots strategy .
I generally recommend that people treat their snapshots as sources with fixed column names, and then build downstream models on top of them where you can rename the columns as you see fit. Is that an option for your use case?
Nope , we have strict standard to follow with naming convention , staging load with scd type or any other strategy , should be in-line with organisation standards like cloud_load_timestamp etcâŚ
This gist from my colleague @jeremyyeo demonstrates overriding the snapshot strategy code to have a custom dbt_valid_from date, but you can use it to see which macros you need to modify (build_snapshot_table and snapshot_staging_table) to have different column names: