You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
When the schema is not known at compile time, a Consumer<GenericObject> should be able to get the message schema.
Currently, a Consumer<GenericRecord> can get the AVRO message and retreive its schema, but if the message is a KeyValue for example, there is no way to get the actual Schema.
The idea is to introduce a CompletableFuture<Schema<?>> getSchema() in the Message API, returning null by default.
The implementation classes (MessageImpl, TopicMessageImpl) could then fetch the Schema if available, and eventually keep it cached as a class member.
The text was updated successfully, but these errors were encountered:
Original Issue: apache#10438
When the schema is not known at compile time, a
Consumer<GenericObject>
should be able to get the message schema.Currently, a
Consumer<GenericRecord>
can get the AVRO message and retreive its schema, but if the message is a KeyValue for example, there is no way to get the actual Schema.The idea is to introduce a
CompletableFuture<Schema<?>> getSchema()
in the Message API, returning null by default.The implementation classes (MessageImpl, TopicMessageImpl) could then fetch the Schema if available, and eventually keep it cached as a class member.
The text was updated successfully, but these errors were encountered: