[ 
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)

Reply via email to