diff --git a/airbyte-integrations/connectors/source-jdbc/src/main/java/io/airbyte/integrations/source/jdbc/AbstractJdbcSource.java b/airbyte-integrations/connectors/source-jdbc/src/main/java/io/airbyte/integrations/source/jdbc/AbstractJdbcSource.java index 18f5f47a4db..7db25337528 100644 --- a/airbyte-integrations/connectors/source-jdbc/src/main/java/io/airbyte/integrations/source/jdbc/AbstractJdbcSource.java +++ b/airbyte-integrations/connectors/source-jdbc/src/main/java/io/airbyte/integrations/source/jdbc/AbstractJdbcSource.java @@ -110,9 +110,9 @@ public abstract class AbstractJdbcSource extends AbstractDbSource cursorField) { LOGGER.info("Queueing query for table: {}", tableName); - // This corresponds to the initial sync for in INCREMENTAL_MODE. The ordering of the records matters - // as intermediate state messages are emitted. - if (syncMode.equals(SyncMode.INCREMENTAL)) { + // This corresponds to the initial sync for in INCREMENTAL_MODE, where the ordering of the records matters + // as intermediate state messages are emitted (if the connector emits intermediate state). + if (syncMode.equals(SyncMode.INCREMENTAL) && getStateEmissionFrequency() > 0) { final String quotedCursorField = enquoteIdentifier(cursorField.get(), getQuoteString()); return queryTable(database, String.format("SELECT %s FROM %s ORDER BY %s ASC", enquoteIdentifierList(columnNames, getQuoteString()),