SpinTheMic
Pro

Explain it in 60 seconds

on_schema_change for incremental models

Data Engineering · dbt · Intermediate

What happens when you add a column to an incremental model? How does on_schema_change help?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • By default (ignore) new columns are not added to the existing table.
  • append_new_columns adds new columns but doesn't remove old ones.
  • sync_all_columns adds and removes columns to match the model.
  • fail stops the run so someone decides.
  • Backfilling the new column for old rows needs a full refresh or a separate update.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics