You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cloud/managing-airbyte-cloud/manage-schema-changes.md
+35-28
Original file line number
Diff line number
Diff line change
@@ -6,44 +6,55 @@ products: all
6
6
7
7
You can specify for each connection how Airbyte should handle any change of schema in the source. This process helps ensure accurate and efficient data syncs, minimizing errors and saving you time and effort in managing your data pipelines.
8
8
9
-
Airbyte checks for any changes in your source schema immediately before syncing, at most once every 24 hours.
9
+
## Types of Schema Changes
10
+
When propagation is enabled, your data in the destination will automatically shift to bring in the new changes.
| New Column | The new colummn will be created in the destination. Values for the column will be filled in for the updated rows. If you are missing values for rows not updated, a backfill can be done by completing a full resync or through the `Backfill new or renamed columns` option (see below)
15
+
| Removal of column | The old column will be removed from the destination.
16
+
| New stream | The first sync will create the new stream in the destination and fill all data in as if it is an initial sync. |
17
+
| Removal of stream | The stream will stop updating, and any existing data in the destination will remain. |
18
+
| Column data type changes | The data in the destination will remain the same. For those syncing on a Destinations V2 destination, any new or updated rows with incompatible data types will result in a row error in the destination tables and show an error in the `airbyte_meta` field. You will need to refresh the schema and do a full resync to ensure the data types are consistent.
19
+
20
+
## Detect and Propagate Schema Changes
12
21
Based on your configured settings for **Detect and propagate schema changes**, Airbyte will automatically sync those changes or ignore them:
| Propagate all field and stream changes | All new tables and column changes from the source will automatically be propagated and reflected in the destination. This includes stream changes (additions or deletions), column changes (additions or deletions) and data type changes
17
-
| Propagate field changes only | Only column changes will be propagated
25
+
| Propagate all changes (streams and fields) | All new streams and column changes from the source will automatically be propagated and reflected in the destination. This includes stream changes (additions or deletions), column changes (additions or deletions) and data type changes
26
+
| Propagate column changes only | Only column changes will be propagated. New or removed streams are ignored.
18
27
| Detect changes and manually approve | Schema changes will be detected, but not propagated. Syncs will continue running with the schema you've set up. To propagate the detected schema changes, you will need to approve the changes manually |
19
28
| Detect changes and pause connection | Connections will be automatically disabled as soon as any schema changes are detected |
20
29
21
-
## Types of Schema Changes
22
-
When propagation is enabled, your data in the destination will automatically shift to bring in the new changes.
| New Column | The new colummn will be created in the destination. Values for the column will be filled in for the updated rows. If you are missing values for rows not updated, a backfill can be done by completing a full resync.
27
-
| Removal of column | The old column will be removed from the destination.
28
-
| New stream | The first sync will create the new stream in the destination and fill all data in as if it is a historical sync. |
29
-
| Removal of stream | The stream will stop updating, and any existing data in the destination will remain. |
30
-
| Column data type changes | The data in the destination will remain the same. Any new or updated rows with incompatible data types will result in a row error in the raw Airbyte tables. You will need to refresh the schema and do a full resync to ensure the data types are consistent.
30
+
Airbyte currently checks for any changes in your source schema immediately before syncing, at most once every 24 hours. This means that your schema may not always be propagated before your sync.
31
31
32
32
:::tip
33
-
Ensure you receive webhook notifications for your connection by enabling `Schema update notifications` in the connection's settings.
33
+
Ensure you receive schema notifications for your connection by enabling notifications in the connection's settings.
34
34
:::
35
35
36
36
In all cases, if a breaking schema change is detected, the connection will be paused immediately for manual review to prevent future syncs from failing. Breaking schema changes occur when:
37
37
* An existing primary key is removed from the source
38
38
* An existing cursor is removed from the source
39
39
40
-
To re-enable the streams, ensure the correct **Primary Key** and **Cursor** are selected for each stream and save the connection.
40
+
To re-enable the streams, ensure the correct **Primary Key** and **Cursor** are selected for each stream and save the connection. You will be prompted to clear the affected streams so that Airbyte can ensure future syncs are successful.
41
+
42
+
### Backfill new or renamed columns
43
+
To further automate the propagation of schema changes, Airbyte also offers the option to backfill new or renamed columns as a part of the sync. This means that anytime a new column is detected through the auto-propagation of schema changes, Airbyte will sync the entire stream again so that all values in the new columns will be completely filled, even if the row was not updated. If this option is not enabled, only rows that are updated as a part of the regular sync will be populated with a value.
44
+
45
+
This feature will only perform the backfill when `Detect and propagate schema changes` is set to `Propagate all changes` or `Propagate columns changes only` and Airbyte detects the schema change as a part of a sync. Refreshing the schema manually and applying schema changes will not allow the backfill to occur.
46
+
47
+
:::tip
48
+
Enabling automatic backfills may incur increased destination costs from refreshing the entire stream.
49
+
:::
50
+
51
+
For Cloud users, any stream that contains a new or renamed column will not be billed and the free usage will be noted on the billing page. Streams that are synced in the same sync and do not contain a new or renamed column will be billed as usual.
41
52
42
53
## Review non-breaking schema changes
43
54
44
55
If the connection is set to **Detect any changes and manually approve** schema changes, Airbyte continues syncing according to your last saved schema. You need to manually approve any detected schema changes for the schema in the destination to change.
45
56
46
-
1. In the Airbyte UI, click **Connections**. Select a connection and navigate to the **Replication** tab. If schema changes are detected, you'll see a blue "i" icon next to the Replication ab.
57
+
1. In the Airbyte UI, click **Connections**. Select a connection and navigate to the **Schema** tab. If schema changes are detected, you'll see a blue "i" icon next to the Replication ab.
47
58
48
59
2. Click **Review changes**.
49
60
@@ -55,11 +66,11 @@ If the connection is set to **Detect any changes and manually approve** schema c
55
66
56
67
## Resolving breaking changes
57
68
58
-
Breaking changes require your attention to resolve. They may immediately cause the connection to be disabled, or you can upgrade the connector manually within a time period once reviewing the changes.
69
+
Breaking changes require your attention to resolve. They may immediately cause the connection to be disabled if your source changed. When a breaking change occurs due to a new major connector version, you can upgrade the connector manually within a time period once reviewing the changes.
59
70
60
71
A connection will always automatically be disabled if an existing primary key or cursor field is removed. You must review and fix the changes before editing the connection or resuming syncs.
61
72
62
-
Breaking changes can also occur when a new version of the connector is released. In these cases, the connection will alert you of a breaking change but continue to sync until the cutoff date for upgrade. On the cutoff date, the connection will automatically be disabled on that date to prevent failure or unexpected behavior. It is **highly recommended** to upgrade before the cutoff date to ensure you continue syncing without interruption.
73
+
Breaking changes can also occur when a new major version of the connector is released. In these cases, the connection will alert you of a breaking change but continue to sync until the cutoff date for upgrade. On the cutoff date, the connection will automatically be disabled on that date to prevent failure or unexpected behavior. It is **highly recommended** to upgrade before the cutoff date to ensure you continue syncing without interruption.
63
74
64
75
A major version upgrade will include a breaking change if any of these apply:
65
76
@@ -76,18 +87,14 @@ To review and fix breaking schema changes:
76
87
77
88
2. Review the description of what has changed in the new version. The breaking change will require you to upgrade your source or destination to a new version by a specific cutoff date.
78
89
79
-
3. Update the source or destination to the new version to continue syncing.
90
+
3. Update the source or destination to the new version to continue syncing. Follow the connector-specific migration guide to ensure your connections continue syncing successfully.
80
91
81
92
### Manually refresh the source schema
82
93
83
-
In addition to Airbyte's automatic schema change detection, you can manually refresh the source schema to stay up to date with changes in your schema.
84
-
85
-
To manually refresh the source schema:
86
-
87
-
1. In the Airbyte UI, click **Connections** and then click the connection you want to refresh.
94
+
In addition to Airbyte's automatic schema change detection, you can manually refresh the source schema to stay up to date with changes in your schema. To manually refresh the source schema:
88
95
89
-
2.Click the **Replication** tab.
96
+
1. In the Airbyte UI, click **Connections** and then click the connection you want to refresh. Click the **Schema** tab.
90
97
91
-
3. In the **Activate the streams you want to sync** table, click **Refresh source schema** to fetch the schema of your data source.
98
+
2. In the **Select streams** table, click **Refresh source schema** to fetch the schema of your data source.
92
99
93
-
4. If there are changes to the schema, you can review them in the **Refreshed source schema** dialog.
100
+
3. If there are changes to the schema, you can review them in the **Refreshed source schema** dialog.
0 commit comments