Snapshotting with schema changes doesn't work (dbt-databricks) #342
pramoddoodala
started this conversation in
General
Replies: 1 comment
-
this looks like this is a bug to me, @pramoddoodala. I suggest converting this Discussion into an Issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Having issues with snapshots, i was able to setup snapshots and had success when i ran dbt snapshot multiple times. But it fails when i rename or add a new column on the model, dbt snapshot fails to recognize new column or renamed column
cannot resolve
new_table_column_name
in INSERT clause given columnsThe table is created by a simple model:
and snapshot:
I run dbt run followed by dbt snapshot to create the snapshot. Then uncomment the commented row in the original table model to modify the table schema:
Running dbt run and dbt snapshot again produces the aforementioned error. Changing the project profile to connect to a BigQuery database and running the exact same models and procedure produces no errors. The same behaviour is present when using check strategy for the snapshot instead of timestamping (and removing the updated_at column).
Current Setup:
Beta Was this translation helpful? Give feedback.
All reactions