[
https://issues.apache.org/jira/browse/CRUNCH-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14961200#comment-14961200
]
Josh Wills commented on CRUNCH-573:
-----------------------------------
I think that automatically "flattening" the union types inside of Avros.unionOf
is the way to go, i.e., a unionOf(union1, union2) -> union of the composite
types inside of union1 and union2. I don't see an obvious issue with that off
the top of my head; does anyone else?
> Avro union in cogroup doesn't check for nested unions
> -----------------------------------------------------
>
> Key: CRUNCH-573
> URL: https://issues.apache.org/jira/browse/CRUNCH-573
> Project: Crunch
> Issue Type: Bug
> Affects Versions: 0.13.0
> Reporter: Adric Eckstein
>
> If one of the Cogroup.cogroup() inputs PType is an avro union, the cogroup()
> method attempts to construct a union of the input PTypes, which throws a Avro
> RuntimeException for a nested union. This is similar to CRUNCH-547.
> The bug could be fixed by either modifying the Avros.unionOf() method to
> check for union input types, or by unnesting the types in cogroup() prior to
> constructing the avro union.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)