Martin Tzvetanov Grigorov created AVRO-3625:
-----------------------------------------------
Summary: [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
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)