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 2C55310406 for ; Fri, 22 Nov 2013 00:45:36 +0000 (UTC) Received: (qmail 60177 invoked by uid 500); 22 Nov 2013 00:45:36 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 60152 invoked by uid 500); 22 Nov 2013 00:45:36 -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 60142 invoked by uid 500); 22 Nov 2013 00:45:36 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 60139 invoked by uid 99); 22 Nov 2013 00:45:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 00:45:36 +0000 Date: Fri, 22 Nov 2013 00:45:35 +0000 (UTC) From: "Josh Wills (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CRUNCH-300) Support reflected Avro record writing from MemPipeline MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CRUNCH-300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Josh Wills resolved CRUNCH-300. ------------------------------- Resolution: Fixed Fix Version/s: 0.9.0 Pushed this one to master; will tackle CRUNCH-302 next. > Support reflected Avro record writing from MemPipeline > ------------------------------------------------------ > > Key: CRUNCH-300 > URL: https://issues.apache.org/jira/browse/CRUNCH-300 > Project: Crunch > Issue Type: Improvement > Components: Core > Reporter: David Whiting > Assignee: Gabriel Reid > Priority: Minor > Fix For: 0.9.0 > > Attachments: 0001-Allow-MemPipeline-to-write-Avro-files-by-reflection.patch, CRUNCH-300b.patch > > > MemPipeline doesn't support writing Avro records via reflection. It seems that this was half implemented but never finished, but I needed it to create some test data to run through a cluster MapReduce test. The current implementation correctly reflects the schema, but then uses a GenericDatumWriter to try and write the record, causing a ClassCastException. The correct way would be to get a ReflectDatumWriter from the ReflectDataFactory. -- This message was sent by Atlassian JIRA (v6.1#6144)