Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.10.2
-
Java 8, Windows, macOS, Confluent Platform 5.5.1
Description
When using a Java application that has class files generated from an avsc file via the Avro Maven plugin along with the
<stringType>String</stringType>
switch set, serialization of records of the type string such as
{"name":"eventType","type":"string"}
will fail. Changing the type to include an "avro.java.string" detail such as
"name": "eventType", "type": { "avro.java.string": "String", "type": "string" }
will succeed.
It is not possible to create this "avro.java.string": "String" detail via the Avro IDL language. The schema creator must first create the avsc file then manually update all of the "type":"string" fields.
See also this link.
Attachments
Issue Links
- is related to
-
AVRO-2838 Schema in generated Java class is different than the original one
- Open
- links to