You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Josh Wills (JIRA)" <ji...@apache.org> on 2014/08/19 21:33:19 UTC

[jira] [Resolved] (CRUNCH-464) Empty PCollection returns null Long for length().getValue()

     [ https://issues.apache.org/jira/browse/CRUNCH-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Wills resolved CRUNCH-464.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.11.0
                   0.8.4

Pushed to master and 0.8-- many thanks [~rem120]!

> Empty PCollection returns null Long for length().getValue()
> -----------------------------------------------------------
>
>                 Key: CRUNCH-464
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-464
>             Project: Crunch
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.10.0
>            Reporter: Jeremy Beard
>            Assignee: Josh Wills
>             Fix For: 0.8.4, 0.11.0
>
>         Attachments: CRUNCH-464.patch
>
>
> PCollection lengths are determined by summing 1s for each record, but when the PCollection is empty there is no sum and so the PObject returns a null length.



--
This message was sent by Atlassian JIRA
(v6.2#6252)