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

Reply via email to