[
https://issues.apache.org/jira/browse/AVRO-2535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17098284#comment-17098284
]
Hudson commented on AVRO-2535:
------------------------------
SUCCESS: Integrated in Jenkins build AvroJava #855 (See
[https://builds.apache.org/job/AvroJava/855/])
AVRO-2535: Add Ruby support for enum defaults (#628) (github:
[https://github.com/apache/avro/commit/40196080593557380d8e9ad5bc588a61dc5de93e])
* (edit) lang/ruby/lib/avro/schema_compatibility.rb
* (edit) lang/ruby/test/test_io.rb
* (edit) lang/ruby/lib/avro/schema.rb
* (edit) lang/ruby/lib/avro/io.rb
* (edit) lang/ruby/test/test_schema_compatibility.rb
* (edit) lang/ruby/test/test_schema.rb
> Ruby support for enum defaults
> ------------------------------
>
> Key: AVRO-2535
> URL: https://issues.apache.org/jira/browse/AVRO-2535
> Project: Apache Avro
> Issue Type: Improvement
> Components: ruby
> Affects Versions: 1.9.0
> Reporter: Tim Perkins
> Assignee: Tim Perkins
> Priority: Minor
> Fix For: 1.10.0
>
>
> Avro v1.9.0 introduced defaults for enum types
> (https://issues.apache.org/jira/browse/AVRO-1340).
> This issue is to add support for enum defaults to the Ruby implementation.
> The current enum handling in the Ruby implementation does not follow the
> spec. If a writer's symbol is unknown to the reader, then the writer's symbol
> is still returned.
> I don't plan on breaking that behavior, but if a default is specified for the
> enum type then that will be returned instead of the unknown writer's symbol.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)