Skip to content

AvroProducer and AvroConsumer without key schema #608

Closed
@kontrafiktion

Description

@kontrafiktion

Description

Our Java producers send messages with a schema for the value, but use a simple string for the key. The Python AvroProducer does not allow a key without a schema. We cannot simply change the existing Java producers. Is there a way to have the exact same string keys used on the Python side. How must the schema be defined? Or can we get rid of the requirement to have a schema for the key?

How to reproduce


Checklist

Please provide the following information:

  • confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()): ('0.11.6', 722432) ('0.11.6', 722687)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionA question about how to use or about expected behavior of the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions