[ 
https://issues.apache.org/jira/browse/AVRO-2535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17098275#comment-17098275
 ] 

ASF subversion and git services commented on AVRO-2535:
-------------------------------------------------------

Commit 40196080593557380d8e9ad5bc588a61dc5de93e in avro's branch 
refs/heads/master from Tim Perkins
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=4019608 ]

AVRO-2535: Add Ruby support for enum defaults (#628)

Added Ruby support for enum type defaults introduced in v1.9.0.

Existing non-conforming Ruby behavior is preserved to return
unknown writer's symbols when no enum default is present.

When an enum default is present it is returned instead of an
unknown writer's symbol.

Compatibility checking still strictly enforces the specification.

> 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)

Reply via email to