You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2022/10/10 20:11:00 UTC

[jira] [Resolved] (AVRO-3632) Union defaults are not handled as per the specification

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

Martin Tzvetanov Grigorov resolved AVRO-3632.
---------------------------------------------
    Fix Version/s: 1.12.0
                   1.11.2
         Assignee: Martin Tzvetanov Grigorov
       Resolution: Fixed

> Union defaults are not handled as per the specification
> -------------------------------------------------------
>
>                 Key: AVRO-3632
>                 URL: https://issues.apache.org/jira/browse/AVRO-3632
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: rust
>    Affects Versions: 1.11.1
>            Reporter: Santiago Fraire Willemoes
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.12.0, 1.11.2
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> According to the [union spec|https://avro.apache.org/docs/1.11.1/specification/#unions].
> ??Note that when a default value is specified for a record field whose type is a union, the type of the default value must match the first element of the union. Thus, for unions containing “null”, the “null” is usually listed first, since the default value of such unions is typically null??
> I wonder if a PR would be accepted for this. I managed to add the check for the first element in the parser.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)