respergu
02/08/2024, 12:43 AMTableDescriptor.forConnector("upsert-kafka")
.schema(
Schema.newBuilder()
.column("psProductId", DataTypes.BIGINT().notNull())
.column("total", DataTypes.BIGINT().notNull())
.primaryKey("psProductId")
.build())
.option("topic", favoriteTotalsTopic)
.option("properties.bootstrap.servers", brokers)
.option("key.format", "avro-confluent")
.option("key.avro-confluent.url", schemaRegistryUrl)
.option("key.avro-confluent.properties.auto.register.schemas", "false")
.option("key.avro-confluent.properties.use.latest.version", "true")
.option("value.format", "avro-confluent")
.option("value.avro-confluent.url", schemaRegistryUrl)
.option("value.avro-confluent.properties.auto.register.schemas", "false")
.option("value.avro-confluent.properties.use.latest.version", "true")
.build();Tim Wolfe
02/24/2024, 8:47 PM"auto.register.schemas": "false" is correct. If Flink still updates or creates new schema versions, ensure there are no typos or overrides in your code, verify compatibility with your Flink version, and check your data for schema evolution.