Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
1.9.0
-
None
-
Centos 7 Docker - ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-musl]
Mac OS X 10.14.X - ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
Description
As of Avro 1.9, the specification states that Enums can have a default value. With the following schema(or similar schemas having enum fields with default values):
{ "type": "record", "name": "enum_field_default", "fields": [ { "name": "msg", "type": "string" }, { "name": "logClass", "type": { "type": "enum", "name": "logClass", "symbols": [ "UNCATEGORIZED", "E1", "E2", "E3", "E4", "E5", "E6", "E7", "E8", "E9", "E10" ] }, "default": "UNCATEGORIZED" } ] }
We are unable to validate this message using Ruby Avro 1.9, however it works fine using Java Avro 1.9:
{"msg": "boom"}
A PR has been created to fix this issue: https://github.com/apache/avro/pull/618
Attachments
Attachments
Issue Links
- links to