Hi, I am trying to create a streams from some topics. All the topics use the same schema because the only difference is in which region US/EU/ASIA they were created. So the schema name and topic name do not match. It seems that the schema name needs to match the topic name plus subffix “-value”. I have not seem a way to specify the schema name in the create statement. Here is my create stream command:
CREATE STREAM stream_dev_agg_impressions_eu3 WITH ( KAFKA_TOPIC = ‘dev-agg_impressions_eu3’, VALUE_FORMAT = ‘AVRO’);
The error I get is Schema for message values on topic ‘dev-_agg_impressions_eu3’ does not exist in the Schema Registry.
Subject: dev-agg_impressions_eu3-value
The actual subject is consolidated-view-gen-source-value
The good new is, this issue is fixed in upcoming 0.24 release via KLIP-56. It will allow you to specify a schema-id in the WITH clause to fetch a schema from a different subject.
For now, you would need to re-register the schema manually for the expected/correct subject name or explicitly specify the schema in your CREATE STREAM statement.