You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Askar Safin (Jira)" <ji...@apache.org> on 2022/01/03 10:31:00 UTC

[jira] [Commented] (AVRO-3280) What is minimal count of variants in a union?

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

Askar Safin commented on AVRO-3280:
-----------------------------------

Note that Avro spec already supports unions with one variant. Such union mentioned here:

" When no errors are declared, the effective error union isĀ ["string"] "

But I still think the spec should explicitly say that one-variant unions are supported in section "Schema Declaration"

> What is minimal count of variants in a union?
> ---------------------------------------------
>
>                 Key: AVRO-3280
>                 URL: https://issues.apache.org/jira/browse/AVRO-3280
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: spec
>            Reporter: Askar Safin
>            Priority: Major
>
> What is minimal count of variants in a union? Spec is not clear on this. I think minimal count of variants should be zero. Because many programming languages support such unions (for example, Rust supports enums without variants)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)