<@U04S8PLJWMT> what happens when u only sync in a ...
# ask-ai
p
@kapa.ai what happens when u only sync in a connection airbyte after a s3 connector was changed from 0 to 1
k
When you upgrade the S3 destination connector in Airbyte from a 0.x version to a 1.x version and then perform a sync on a connection, several important changes occur: 1. Schema Changes and Metadata: The 1.x version introduces changes to the schema of data written to S3, making it isomorphic to Airbyte's V2 certified database destinations. New metadata fields such as
_airbyte_generation_id
and
_airbyte_meta
(which includes
sync_id
) are added. This provides more information for debugging and tracking syncs. The structure of the data files in S3 will change accordingly after the upgrade and the next sync will use the new schema format [S3 Migration Guide](https://docs.airbyte.com/integrations/destinations/s3-migrations#s3-migration-guide). 2. Backward Compatibility: The upgrade from 0.x to 1.x is considered a major version change. Major version upgrades may include breaking changes, such as schema changes, changes in how data is written, or state format changes. Airbyte recommends reviewing the migration guide and understanding the changes before syncing, as downstream systems consuming S3 data may need to be updated to handle the new schema [Managing Connector Updates in Airbyte](https://docs.airbyte.com/platform/1.6/managing-airbyte/connector-updates), [Major Connector Version Upgrades](https://docs.airbyte.com/platform/1.6/using-airbyte/schema-change-management#major-connector-version-upgrades). 3. Full Refresh May Be Required: If the major version upgrade includes a change in the destination format or normalization, Airbyte may require a full refresh of the data. This means the next sync after the upgrade could re-upload all data in the new format, replacing or supplementing existing files in S3 [Major Connector Version Upgrades](https://docs.airbyte.com/platform/1.6/using-airbyte/schema-change-management#major-connector-version-upgrades). 4. Sync Behavior: After upgrading, when you run a sync, Airbyte will use the new connector logic and schema. If your connection is set to incremental sync, it will continue from the last state, but the output files will follow the new schema and file structure. If a full refresh is triggered (either manually or due to a breaking change), all data will be re-synced in the new format. Summary: After upgrading the S3 connector from 0.x to 1.x, the next sync will write data in a new schema and file format, possibly requiring downstream adjustments. If the upgrade includes breaking changes, a full refresh may be required, and you should review the migration guide to ensure compatibility with your data consumers. If you need more details about a specific scenario (e.g., incremental vs. full refresh, or handling of existing files), please provide more context.
p
@kapa.ai i did a sync on a connection there were schema changes how to discard them ?
k
A message from kapa.ai
If you performed a sync after schema changes but want to discard those schema changes, Airbyte does not provide a direct "undo" for schema changes that have already been applied and synced. However, you can take the following actions: - Clear the affected streams or the entire connection: This will remove all data in your destination for those streams, including any changes resulting from the new schema. After clearing, you can reconfigure your schema as needed and re-sync with the desired schema. To do this, go to the connection's Settings tab and use the "Clear data" option. For a single stream, use the three-dot menu next to the stream and select "Clear data" [Clearing your data](https://docs.airbyte.com/platform/operator-guides/clear). - Manually revert schema changes in the destination: If you have control over your destination (e.g., a database or data lake), you may manually alter or drop the affected tables/objects to revert to the previous schema. Then, re-sync with the correct schema configuration. - Revert to a previous connection configuration: If you have a backup or version control of your Airbyte connection configuration, you can restore it and clear the destination to remove the effects of the unwanted schema changes. Note: Once data has been synced with the new schema, the changes are reflected in your destination. Clearing data is irreversible, so ensure you want to remove all records before proceeding. Airbyte does not automatically revert schema changes in the destination unless you clear or reset the data [Schema Change Management](https://docs.airbyte.com/platform/using-airbyte/schema-change-management). If you need to prevent schema changes from being applied in the future, you can set your connection to "Approve all changes myself" so that schema changes are only applied after your manual approval [Schema Change Management](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#detect-and-propagate-schema-changes-connection-setting).
p
@kapa.ai no i did a sync then schema was changed
k
A message from kapa.ai
If you performed a sync, and then the schema was changed in your source, Airbyte will continue to use the schema that was present at the time of the last sync until you refresh or approve the new schema. Schema changes are not automatically applied unless your connection is configured to do so. If you do not want to apply the new schema changes, simply do not refresh or approve the new schema in the Airbyte UI. The connection will keep syncing using the previous schema. If you have already refreshed or approved the schema changes, there is no built-in "undo" to revert to the previous schema—Airbyte does not provide a rollback feature for schema changes that have already been accepted and synced. To summarize: - If you have not approved or refreshed the schema, nothing changes—just continue syncing as before. - If you have already applied the schema changes, you cannot discard them via Airbyte UI; you would need to manually revert changes in your destination or restore from a backup if needed. For more details on how schema change management works and your options for handling detected changes, see the documentation on [Schema Change Management](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#detect-and-propagate-schema-changes-connection-setting).