avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Busbey <bus...@cloudera.com>
Subject Re: Unions Only Allow One Map, Even If Values Are Different?
Date Tue, 05 Aug 2014 20:09:01 GMT
Hi Mike!

Yep, the specification calls out that only those types that are named
(records, enums, and fixed) can occur multiple times in a union[1].

[1]: http://avro.apache.org/docs/1.7.7/spec.html#Unions

On Tue, Aug 5, 2014 at 2:28 PM, Michael Pigott <
mpigott.subscriptions@gmail.com> wrote:

> Hi,
>     I looked through the JIRA tickets but I did not find one that matched
> what I just ran into - unions can't have multiple maps, even if each one
> has a different value type?  Automatic-map-generation is the last feature
> I'm adding to AVRO-457 <https://issues.apache.org/jira/browse/AVRO-457> (before
> Avro -> XML conversion) and I was surprised that two maps, each with
> different value types, could not co-exist in a union.  Is this on purpose?
> Thanks!
> Mike


View raw message