<@U04S8PLJWMT> I am loading CSV files from GCS, an...
# ask-ai
f
@kapa.ai I am loading CSV files from GCS, and over the past week, we have added a new column to them. How should I proceed with schema update if I don't want to reload all the historical data again and only add new column from the next sync onwards?
k
Based on the knowledge sources, here's how you can handle adding a new column without reloading all historical data: ## Schema Change Management Options Airbyte provides several options for handling schema changes. For your use case, you should: 1. Configure Schema Change Detection: Navigate to your connection's Settings tab and set the "Detect and propagate schema changes" option to either: -
Propagate field changes only
- Only column changes will be propagated -
Propagate all field and stream changes
- All changes will be propagated According to the [Schema change management documentation](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#detect-and-propagate-schema-changes-connection-setting), when these settings are enabled, schema changes (except breaking changes) are automatically applied to the next sync. 2. Avoid Automatic Backfill: By default, when a new column is detected, only rows that are updated as part of the regular sync will be populated with values in the new column. This is exactly what you want - no historical data reload. As stated in the [Backfill documentation](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#backfill-new-or-renamed-columns-connection-setting): "If this option is not enabled, only rows that are updated as a part of the regular sync will be populated with a value." 3. Do NOT enable "Backfill new or renamed columns": This setting would cause Airbyte to sync the entire stream again to fill all values in the new column, which is what you want to avoid. ## What Will Happen When Airbyte detects the new column in your CSV files: - The new field will be created in the destination - Values for the field will be filled in for updated rows only - Historical rows will not be updated with the new column values - The sync will continue normally without reloading all data This approach allows you to add the new column incrementally without the overhead of reprocessing historical data.