-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeserializingConsumer does not return a regular Message when used with AvroDeserializer #1800
Comments
@pranavrth might be the contributor most familar with the DeserializingConsumer |
You need to use |
That's exactly what I'm saying. This issue isn't that it doesn't work- it does. But the I would offer to define such a class (like in the original description above), but the original Message class is not defined in Python. |
No, it depends on the value serializer that is provided. If no serializer is provided, it is same as what a normal consumer would return i.e. byte/str. |
Okay, I've narrowed the Issue title to indicate that this is true for the |
I would let @rayokota handle from here whose team deals with Schema Registry. |
Description
The
Message
object returned byDeserializingConsumer.value()
doesn't appear to match the signature- it can return adict
, for example, and not only astr
orbytes
.How to reproduce
AvroDeserializer
to createDeserializingConsumer
.poll()
method to return messageMessage.value()
should contain deserialized dictionary instead ofstr
orbytes
I wonder if the DeserializingConsumer needs a DeserializedMessage, with something like the following:
Checklist
Please provide the following information:
confluent_kafka.version()
andconfluent_kafka.libversion()
):('2.3.0', 33751040), ('2.3.0', 33751295)
{...}
'debug': '..'
as necessary)The text was updated successfully, but these errors were encountered: