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 Jan 14, 2025
1 parent 7995644 commit 182eec5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,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;
import io.debezium.util.Collect;

public class SourceInfoTest {
Expand Down Expand Up @@ -118,11 +118,12 @@ public void keyspaceIsPresent() {
public void schemaIsCorrect() {
final Schema schema = SchemaBuilder.struct()
.name("io.debezium.connector.vitess.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 182eec5

Please sign in to comment.