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/09/09 10:37:00 UTC
[jira] [Resolved] (AVRO-3625) [Rust] UnionSchema.is_nullable() should return true if any of the variants is Schema::Null
[ https://issues.apache.org/jira/browse/AVRO-3625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Tzvetanov Grigorov resolved AVRO-3625.
---------------------------------------------
Fix Version/s: 1.12.0
1.11.2
Resolution: Fixed
> [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
> Fix For: 1.12.0, 1.11.2
>
> 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)