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

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

Commit 9b968c4726c8c660195146c118131825cbdd6ba0 in avro's branch 
refs/heads/avro-3625-union-schema-is-nullable from Martin Tzvetanov Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=9b968c472 ]

AVRO-3625: [Rust] UnionSchema is nullable if any of its variants is Null

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>


> [Rust] UnionSchema.is_nullable() should return true if any of the variants is 
> Schema::Null
> ------------------------------------------------------------------------------------------
>
>                 Key: AVRO-3625
>                 URL: https://issues.apache.org/jira/browse/AVRO-3625
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: rust
>    Affects Versions: 1.11.1
>            Reporter: Martin Tzvetanov Grigorov
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Minor
>
> Currently UnionSchema::is_nullable() returns `true` if the first variant is 
> `"null"`.
> The specification 
> [says|https://avro.apache.org/docs/1.11.1/specification/#unions]: "Thus, for 
> unions containing “null”, the “null” is usually listed first, since the 
> default value of such unions is typically null."
> That is, the `null` is *usually* at the first position{*},{*} but this is not 
> mandatory!



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

Reply via email to