[
https://issues.apache.org/jira/browse/AVRO-3625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17602254#comment-17602254
]
ASF subversion and git services commented on AVRO-3625:
-------------------------------------------------------
Commit 87cc6919803b6f284077b947a208b9ffd95429ca in avro's branch
refs/heads/branch-1.11 from Martin Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=87cc69198 ]
AVRO-3625: [Rust] UnionSchema is nullable if any of its variants is Null (#1857)
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
(cherry picked from commit 90b273ac6b038f319a7bcbfa4d7ba713a390c792)
> [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
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)