Closed nicollette closed 2 years ago
Hi @nicollette , VALUE_SCHEMA_ID
and KEY_SCHEMA_ID
are not properly supported in 0.22 release and it's not in public documentation. It's reimplemented and will be out in 0.24 release. Can you try again using master?
Hi @nicollette , I'm closing this as it's in old release which schema_id
is not properly supported.
Hi @lihaosky , thanks for the update! Using the schema in the issue description (a single String field), ksqldb version 0.24.0 and VALUE_SCHEMA_ID
, everything works as expected 🎉
I tried creating a STREAM using a schema that contains a single Float field and it fails with:
Value format does not support schema.
format: AVRO
schema: Persistence{columns=[`id` DOUBLE], features=[]}
reason: Unexpected schema type: Schema{FLOAT32}
This is on v.0.24.0 and I specified VALUE_SCHEMA_ID
. My Avro schema is:
{
"type" : "record",
"name" : "IdTestFloat",
"namespace" : "streams",
"doc" : "Test Avro Schema",
"fields" : [
{
"name": "id",
"type": ["null", "float"]
}
]
}
Is this the expected behavior?
@nicollette Ca you please confirm if this is working?
Describe the bug I cannot read a topic that uses a schema named with the RecordNameStrategy.
To Reproduce Steps to reproduce the behavior, include:
confluentinc/ksqldb-server:0.22.0
Docker image.avsc
file:RecordNameStrategy
. This is how I configured the SerDe in my Kafka Streams app:The schema will be automatically registered when messages are produced to Kafka.
STREAM
over this topic:This fails with:
STREAM
by specifying the Schema ID:The
STREAM
is created.Expected behavior When specifying
VALUE_SCHEMA_ID
, I would expect ksqlDB to be able to find the schema using this ID and I would be able to query the topic in ksqlDB. According to this doc,The schemas referred to by KEY_SCHEMA_ID and VALUE_SCHEMA_ID must be registered in {{ site.sr }}. They can be under any subject but must match the formats defined by KEY_FORMAT and VALUE_FORMAT, respectively.
.Actual behaviour When querying the
STREAM
in Step 6 in the Steps to Reproduce, the server logs show it cannot deserialize the messages:Additional context I am looking for a solution for querying topics that use any Subject Naming Strategy.