You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/09/07 08:23:00 UTC
[jira] [Updated] (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 ]
ASF GitHub Bot updated AVRO-3625:
---------------------------------
Labels: pull-request-available (was: )
> [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: 10m
> 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)