How do I do an incremental sync on an integer fiel...
# ask-ai
j
How do I do an incremental sync on an integer field?
k
You can use integer fields as cursors for incremental sync in Airbyte, as long as they are monotonically increasing (e.g., auto-increment IDs). Options: - Using source connectors that support integer cursors: - Snowflake source: supports numeric types (
INTEGER
,
BIGINT
,
DECIMAL
, etc.) as cursor fields. Configure the connection in Incremental | Append mode and select your integer column as the cursor (the connector filters with WHERE cursor_field > last_cursor_value and tracks max value) ([Snowflake incremental sync](https://docs.airbyte.com/integrations/sources/snowflake#incremental-sync)). - BigQuery source: supports any data type as a cursor field;
INT64
is recommended for auto-incrementing IDs. It uses WHERE cursor_field > last_cursor_value and saves the max cursor value ([BigQuery supported sync modes](https://docs.airbyte.com/integrations/sources/bigquery#supported-sync-modes)). - Connector Builder (for HTTP APIs): - If your API exposes an integer “updated since”/ID filter, you can implement incremental sync by setting the cursor field and providing the appropriate request injection. The Builder supports Unix timestamps too via cursor datetime formats
%s
(seconds) and
%ms
(milliseconds), which covers integer epoch cursors ([Connector Builder incremental sync](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/incremental-sync#cursor-datetime-formats)). Notes and caveats: - Ensure the integer cursor is strictly increasing and non-null to avoid skips or re-syncs ([Snowflake incremental sync](https://docs.airbyte.com/integrations/sources/snowflake#incremental-sync), [BigQuery supported sync modes](https://docs.airbyte.com/integrations/sources/bigquery#supported-sync-modes)). - There is an open issue requesting explicit epoch-integer cursor support for the DynamoDB source; behavior may be limited there ([issue](https://github.com/airbytehq/airbyte/issues/59769)). - A Snowflake issue reported failures when the integer cursor ends with 0; be aware of this edge case while it’s open ([issue](https://github.com/airbytehq/airbyte/issues/13651)).