crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Beard (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CRUNCH-468) MemPipeline.collectionOf() leads to NPE in PCollection.length()
Date Mon, 01 Sep 2014 01:22:21 GMT

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

Mime
View raw message