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.
Because we shade Avro in the pulsar-client, the ReflectData API to get a schema from a POJO fails to get the correct schema for generated Avro java classes
Original Issue: apache#3762
Describe the bug
Because we shade Avro in the pulsar-client, the ReflectData API to get a schema from a POJO fails to get the correct schema for generated Avro java classes
To Reproduce
Given an avro schema:
Passing the generated java class from the above schema to the AvroSchema in pulsar-client produces the following result:
outputs:
which is incorrect while
outputs the correct schema that matches the original schema:
Here is the line in Avro responsible for getting the schema from generated classes:
https://github.com/apache/avro/blob/release-1.8.2/lang/java/avro/src/main/java/org/apache/avro/specific/SpecificData.java#L277
Here is a project I created that demonstrates this problem:
https://github.com/jerrypeng/TestAvro
The text was updated successfully, but these errors were encountered: