You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Jeremy Beard (JIRA)" <ji...@apache.org> on 2014/09/01 03:22:21 UTC

[jira] [Commented] (CRUNCH-468) MemPipeline.collectionOf() leads to NPE in PCollection.length()

    [ 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)