Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Add Schema name while converting to connect schema. #20

Merged
merged 1 commit into from
Jul 29, 2019

Conversation

smithakoduri
Copy link
Contributor

@smithakoduri smithakoduri commented Jul 3, 2019

Hi,

We are implementing a Kafka Source Connector, in which we are using kafka-connect-protobuf-converter to convert protobuf to connect Schema (in order to generate the SourceRecord). We are seeing an error "org.apache.avro.SchemaParseException: Can't redefine: io.confluent.connect.avro.ConnectDefault" when this connect schema is converted to avro via schema-registry. The error seems to be because of the missing name for Struct Schema. If a Schema name is not provided then a default name is considered. And if there is an embedded Struct schema, then it will try to use the same default name to both and fails to redefine.
I have added a fix to this PR, that will set the Schema name for (Type: Struct) that will further fix this error.

@smithakoduri smithakoduri requested a review from a team as a code owner July 3, 2019 21:51
@criccomini
Copy link

@sschatts any chance we could get this committed/published to Maven central?

@criccomini
Copy link

@mike9005 thx for approval! Any chance we can get this merged/released into maven central soon 🤞

@mike9005
Copy link
Member

@criccomini yeah absolutely - we'll look at that in our next sprint

@sschatts
Copy link
Contributor

We will post here once it is released in Maven central! Thanks for the contribution.

@sschatts sschatts merged commit 1773e5a into blueapron:master Jul 29, 2019
@criccomini
Copy link

Thanks so much! Interactions like this are what make open source so great. :D

tveon pushed a commit to tveon/kafka-connect-protobuf-converter that referenced this pull request Feb 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants