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

Oscar Westra van Holthe - Kind commented on AVRO-3280:
------------------------------------------------------

Looking the other way around, all implementations except JavaScript allow empty 
unions (in c / c++ / c# are the most extreme: they let you create empty unions 
only, where you can add schemas to later).

The highest minimum number of variants required by the implementations is 1.

Combined with your find on message errors, I think we should clarify the spec 
to state that one variant is the minimum.

> 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