<@U04S8PLJWMT> I created a connection with a snowf...
# ask-ai
n
@kapa.ai I created a connection with a snowflake source connector and a mssql destination connector. I set the connection to be incremental based on a reliable cursor column in the snowflake source table. Initial sync was good. However, subsequent sync, when data has not changed in Snowflake source table, continues to push the same rows into destination again. why?
k
The behavior you're experiencing—where the same rows are repeatedly pushed to the destination even though the data in the Snowflake source hasn't changed—is expected in some cases due to how Airbyte's incremental sync works with cursor fields. Airbyte provides an at-least-once delivery guarantee for incremental syncs. If your cursor field is not highly granular (for example, if it only tracks dates and not times, or if multiple records share the same cursor value), Airbyte may re-send the same records in each sync. This happens because the incremental query uses a condition like:
Copy code
sql SELECT * FROM table WHERE cursor_field >= 'last_sync_max_cursor_field_value'
If the cursor value for your records hasn't changed, and especially if multiple records share the same cursor value, Airbyte will continue to emit those records in every sync. This is by design to avoid missing any data, especially when the cursor field is ambiguous or not unique. The documentation states: > Additionally, you may run into behavior where you see the same row being emitted during each sync. This will occur if your data has not changed and you attempt to run additional syncs, as the cursor field will always be greater than or equal to itself, causing it to pull the latest row multiple times until there is new data at the source. [Incremental Sync - Append: Inclusive Cursors](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#inclusive-cursors) To minimize this, ensure your cursor field is as granular and unique as possible (e.g., a timestamp with high precision or a monotonically increasing ID). If your cursor field is not granular enough, this repeated syncing is expected behavior. If you need strict deduplication, you may need to handle it downstream or consider a different sync strategy. For more details, see the Airbyte documentation on [Incremental Sync - Append: Inclusive Cursors](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#inclusive-cursors).