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 AF70211873 for ; Sat, 31 May 2014 21:50:01 +0000 (UTC) Received: (qmail 17393 invoked by uid 500); 31 May 2014 21:50:01 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 17350 invoked by uid 500); 31 May 2014 21:50:01 -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 17342 invoked by uid 500); 31 May 2014 21:50:01 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 17339 invoked by uid 99); 31 May 2014 21:50:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 May 2014 21:50:01 +0000 Date: Sat, 31 May 2014 21:50:01 +0000 (UTC) From: "Josh Wills (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CRUNCH-406) Have the Avro IO methods in From/To take PTypes instead of AvroTypes 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-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Josh Wills resolved CRUNCH-406. ------------------------------- Resolution: Fixed Fix Version/s: 0.8.3 0.10.0 Pushed to master and 0.8. > Have the Avro IO methods in From/To take PTypes instead of AvroTypes > -------------------------------------------------------------------- > > Key: CRUNCH-406 > URL: https://issues.apache.org/jira/browse/CRUNCH-406 > Project: Crunch > Issue Type: Improvement > Reporter: Josh Wills > Fix For: 0.10.0, 0.8.3 > > Attachments: CRUNCH-406.patch > > > I'm finding it somewhat annoying to have to cast PTypes from different contexts (like from a PCollection.getPType or from a derived type) back to AvroType whenever I want to use From/At.avroFile methods. I think we can safely move the casting into the From/At methods and assume that someone who is using Avro will only ever be using it with the AvroTypeFamily. -- This message was sent by Atlassian JIRA (v6.2#6252)