From dev-return-4910-apmail-crunch-dev-archive=crunch.apache.org@crunch.apache.org Mon Sep 1 01:22:21 2014 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 7F42B11C0D for ; Mon, 1 Sep 2014 01:22:21 +0000 (UTC) Received: (qmail 76961 invoked by uid 500); 1 Sep 2014 01:22:21 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 76921 invoked by uid 500); 1 Sep 2014 01:22:21 -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 76910 invoked by uid 500); 1 Sep 2014 01:22:21 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 76907 invoked by uid 99); 1 Sep 2014 01:22:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Sep 2014 01:22:21 +0000 Date: Mon, 1 Sep 2014 01:22:21 +0000 (UTC) From: "Jeremy Beard (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CRUNCH-468) MemPipeline.collectionOf() leads to NPE in PCollection.length() 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-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14116963#comment-14116963 ] Jeremy Beard commented on CRUNCH-468: ------------------------------------- I'd be happy to write a patch for this. I have two questions: - Why is the PTypeFamily of the PCollection used for the running count? - Which PTypeFamily should be used when the PCollection doesn't have one? > MemPipeline.collectionOf() leads to NPE in PCollection.length() > --------------------------------------------------------------- > > Key: CRUNCH-468 > URL: https://issues.apache.org/jira/browse/CRUNCH-468 > Project: Crunch > Issue Type: Bug > Components: Core > Affects Versions: 0.10.0 > Reporter: Jeremy Beard > Assignee: Josh Wills > > MemPipeline.collectionOf() creates a PCollection with a null PTypeFamily. When PCollection.length() is run it uses the PTypeFamily of the PCollection to serialize the running count of the records, which leads to a NPE for PCollections created as above. -- This message was sent by Atlassian JIRA (v6.3.4#6332)