Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45F9C17229 for ; Fri, 16 Oct 2015 12:43:05 +0000 (UTC) Received: (qmail 57831 invoked by uid 500); 16 Oct 2015 12:43:05 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 57795 invoked by uid 500); 16 Oct 2015 12:43:05 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 57784 invoked by uid 500); 16 Oct 2015 12:43:05 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 57781 invoked by uid 99); 16 Oct 2015 12:43:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 12:43:05 +0000 Date: Fri, 16 Oct 2015 12:43:05 +0000 (UTC) From: "Adric Eckstein (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CRUNCH-573) Avro union in cogroup doesn't check for nested unions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Adric Eckstein created CRUNCH-573: ------------------------------------- Summary: 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)