You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Fokko Driesprong (Jira)" <ji...@apache.org> on 2020/05/03 07:31:00 UTC

[jira] [Updated] (AVRO-2535) Ruby support for enum defaults

     [ https://issues.apache.org/jira/browse/AVRO-2535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fokko Driesprong updated AVRO-2535:
-----------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

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