Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2535

Ruby support for enum defaults

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.0
    • 1.10.0
    • ruby
    • None

    Description

      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.

       

      Attachments

        Issue Links

          Activity

            People

              tjwp Tim Perkins
              tjwp Tim Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: