Skip to content

Commit

Permalink
DBZ-8499 Make source info versioned
Browse files Browse the repository at this point in the history
  • Loading branch information
jpechane committed Dec 10, 2024
1 parent 4672413 commit 91fff75
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

import io.debezium.config.CommonConnectorConfig;
import io.debezium.config.Configuration;
import io.debezium.connector.AbstractSourceInfoStructMaker;
import io.debezium.connector.SnapshotRecord;
import io.debezium.relational.TableId;
import io.debezium.schema.SchemaFactory;

public class SourceInfoTest {

Expand Down Expand Up @@ -85,11 +85,12 @@ public void tableIdIsPresent() {
public void schemaIsCorrect() {
final Schema schema = SchemaBuilder.struct()
.name("io.debezium.connector.informix.Source")
.version(SchemaFactory.SOURCE_INFO_DEFAULT_SCHEMA_VERSION)
.field("version", Schema.STRING_SCHEMA)
.field("connector", Schema.STRING_SCHEMA)
.field("name", Schema.STRING_SCHEMA)
.field("ts_ms", Schema.INT64_SCHEMA)
.field("snapshot", AbstractSourceInfoStructMaker.SNAPSHOT_RECORD_SCHEMA)
.field("snapshot", SchemaFactory.get().snapshotRecordSchema())
.field("db", Schema.STRING_SCHEMA)
.field("sequence", Schema.OPTIONAL_STRING_SCHEMA)
.field("ts_us", Schema.OPTIONAL_INT64_SCHEMA)
Expand Down

0 comments on commit 91fff75

Please sign in to comment.