connection_payload = { "name": "Testing MySQL ...
# ask-ai
n
connection_payload = { "name": "Testing MySQL Database → S3", "sourceId": "a384af5c-d9d5-4c77-93bc-0245430c1813", "destinationId": "cee59ca5-dfb2-4dab-8fb8-14ab2a3278ab", "status": "active", "namespaceDefinition": "destination", "namespaceFormat": "${SOURCE_NAMESPACE}", "prefix": "", "nonBreakingChangesPreference": "propagate_columns", "geography": "", "syncCatalog": { "streams": [ { "stream": { "name": "card", "jsonSchema": { "type": "object", "properties": { "STATUS_ENUM_ID": {"airbyte_type": "integer", "type": "number"}, "LOADTIME": {"format": "date-time", "airbyte_type": "timestamp_with_timezone", "type": "string"}, "ACCOUNT_ID": {"airbyte_type": "integer", "type": "number"}, "BARCODE": {"type": "string"}, "MODIFIED_DATETIME": {"format": "date-time", "airbyte_type": "timestamp_without_timezone", "type": "string"}, "BATCH_ID": {"airbyte_type": "integer", "type": "number"}, "TEMPLATE_ID": {"airbyte_type": "integer", "type": "number"}, "CARD_NUMBER": {"type": "string"}, "TRACK_TWO": {"type": "string"}, "CREATED_DATETIME": {"format": "date-time", "airbyte_type": "timestamp_without_timezone", "type": "string"}, "PRINTED_CARD_NUMBER": {"type": "string"}, "TRACK_ONE": {"type": "string"}, "CARD_ID": {"airbyte_type": "integer", "type": "number"}, "MERCHANT_ID": {"airbyte_type": "integer", "type": "number"} } }, "supportedSyncModes": ["full_refresh", "incremental"], "sourceDefinedCursor": False, "defaultCursorField": [], "sourceDefinedPrimaryKey": [], "namespace": "mydb", "isResumable": False }, "config": { "syncMode": "incremental", "destinationSyncMode": "append", "cursorField": ["CARD_ID"], "selected": True, "suggested": False, "fieldSelectionEnabled": False, "selectedFields": [], "hashedFields": [], "mappers": [], "aliasName": "card", "primaryKey": [] } } ] }, "notifySchemaChanges": True, "backfillPreference": "disabled", "tags": [], "scheduleType": "basic", "scheduleData": { "basicSchedule": { "units": 24, "timeUnit": "hours" } }, "operationIds": [], "sourceCatalogId": "bbfcae7e-ddfc-4523-8891-270597a61bc9" } issue with payload without jsonSchema possible inagestion but i need cursorField
k
In Airbyte, the
cursorField
is essential for incremental syncs, as it determines which records are new or updated since the last sync. The
cursorField
must reference a field present in the stream's schema (i.e., in
jsonSchema
). If you omit the
jsonSchema
, Airbyte will not know which fields are available, and therefore cannot validate or use the
cursorField
for incremental syncs. From the knowledge sources: - The cursor field is defined as the property in the record that determines when the record was last updated, and it must exist in the schema of the stream. For example, if you want to use
MODIFIED_DATETIME
as your cursor, it must be present in the
jsonSchema
of the stream. If the field is missing from the schema, Airbyte cannot use it as a cursor and will likely throw an error or fail to configure the sync properly [Incremental sync](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/incremental-sync). - The cursor field is required for incremental syncs, and its path is specified as an array of strings. This path must match a field in the stream's schema [Airbyte Protocol - Cursor](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol#cursor). Summary: You cannot configure a
cursorField
for incremental sync without specifying the
jsonSchema
for the stream, because Airbyte needs to validate that the cursor field exists in the schema. If you attempt to do so, ingestion may fail or the sync may not work as expected. If you need to use a cursor field, ensure that the field is present in the
jsonSchema
of your stream definition. If you omit the schema, you will not be able to use incremental sync with a cursor field. > The knowledge sources do not mention any supported way to use a
cursorField
without a
jsonSchema
. The schema is required for Airbyte to understand and validate the cursor field.