<@U04S8PLJWMT> my cursor defined incremental load ...
# ask-ai
h
@kapa.ai my cursor defined incremental load changes the schema of the file everytime and in turn results in the failure of my destination table
k
If your cursor-defined incremental load is causing schema changes in the file, which then results in failures in your end table, this is a known limitation in Airbyte's incremental sync mode. Incremental sync relies on a cursor field to detect new or updated records. If the schema of the source changes (for example, columns are added, renamed, or deleted), the incremental sync may not handle these changes automatically, leading to failures or inconsistencies in the destination table. Airbyte documentation states that the current behavior of Incremental sync is not able to handle source schema changes automatically. When a schema change occurs, such as a column being added, renamed, or deleted, it is recommended to trigger a Full Refresh - Overwrite to correctly replicate the data to the destination with the new schema changes. This ensures that the destination schema matches the source and avoids sync failures due to schema mismatches. Additionally, schema changes like changing the cursor field are considered breaking changes and require user intervention, such as a schema refresh and data reset, to resolve issues and maintain compatibility between source and destination tables [Incremental Sync - Append: Known Limitations](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations) [Schema Change Management](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#detect-and-propagate-schema-changes-connection-setting). To summarize: - Incremental sync does not automatically handle source schema changes. - Schema changes (especially to the cursor field) are breaking and require a schema refresh and data reset. - To resolve failures, perform a Full Refresh - Overwrite after schema changes, or use Airbyte's schema change management features to review and approve changes before syncing again. If you need to propagate schema changes automatically, you can configure your connection to do so, but breaking changes (like cursor changes) will always require manual intervention to prevent sync failures [Schema Change Management](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#detect-and-propagate-schema-changes-connection-setting).
A message from kapa.ai
If your incremental sync uses a cursor field and the schema of your source file changes every time (for example, columns are added, removed, or renamed), this can cause failures in your destination table. This is a known limitation in Airbyte: the incremental sync mode is not able to handle source schema changes automatically. When the schema changes, especially if the cursor field itself changes or is removed, Airbyte will pause the connection and require manual intervention to prevent sync failures. To address this: - Schema changes (like new, removed, or renamed columns) are not automatically handled in incremental sync. You need to manually refresh the schema and, in some cases, perform a full refresh to ensure the destination matches the new schema. - Breaking changes (such as removing or changing the cursor field) will pause the connection and require you to review and approve the changes in the Airbyte UI before syncing can continue. - Recommended action: After a schema change, go to your connection’s settings, refresh the schema, and consider running a full refresh (overwrite) to realign the destination table with the new schema. This is especially important if the cursor field changes, as this is considered a breaking change and will always require manual review and approval before syncs can resume. For more details, see the documentation on [schema change management](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#detect-and-propagate-schema-changes-connection-setting) and [incremental sync limitations](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations). In summary: Incremental sync does not support automatic handling of schema changes. Manual schema refresh and, if needed, a full refresh are required to resolve destination table failures caused by source schema changes. Breaking changes to the cursor field will always require manual intervention.
h
@kapa.ai the data type of the parquet file is changing everytime which causes an issue
k
A message from kapa.ai
If the data type of a column in your Parquet file changes every time, this can cause issues in Airbyte, especially with incremental syncs. According to the documentation, when a column's data type changes, the data in the destination will remain the same. For destinations that support Destinations V2, 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. To resolve this, you need to refresh the schema and refresh the stream to ensure the data types are consistent between the source and the destination. If a column's type is changed and any historical records contain a value that cannot be cast to the new type, the schema change will fail in direct-load destinations. In such cases, you have two options: - Run a refresh and choose to remove existing records. - Manually update historical records to be valid under the new type. This means that frequent data type changes in your Parquet files will require manual intervention to keep your syncs running smoothly. Airbyte does not automatically resolve data type mismatches; you must refresh the schema and possibly reset or clean up data to avoid sync failures or errors in your destination tables [Schema Change Management](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#detect-and-propagate-schema-changes-connection-setting) [Direct-Load Tables](https://docs.airbyte.com/platform/using-airbyte/core-concepts/direct-load-tables#what-will-change).