Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Bug
-
1.9.0
-
None
-
None
Description
I have a simple schema as follows:
{ "type" : "record", "name" : "LogicalTypeDate", "namespace" : "com.zillow.avro", "fields" : [ { "name" : "type", "type" : "string" }, { "name" : "modifiedDate", "type" : "int", "logicalType": "date" } ] }
I am reading it in java as follows:
org.apache.avro.Schema.Parser parser = new Schema.Parser(); Schema schema = parser.parse(this.getClass().getClassLoader().getResourceAsStream(schemaFile));
When I look at the resultant Schema object, and look at the fields, I see "logicalType" is NULL for the "modifiedDate" field.
I would have expected the field to be set correctly.
Here is the image from the debugger window of my IntelliJ IDe
Attachments
Attachments
Issue Links
- is related to
-
AVRO-3014 logicalType annotation doesnt seem to work when generating java class from schema
- Resolved