You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2015/10/30 20:52:27 UTC

[jira] [Resolved] (PIG-4721) IsEmpty documentation error

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

Daniel Dai resolved PIG-4721.
-----------------------------
       Resolution: Fixed
         Assignee: Nathan Smith
    Fix Version/s: 0.16.0

Fixed. Thanks Nathan!

> IsEmpty documentation error
> ---------------------------
>
>                 Key: PIG-4721
>                 URL: https://issues.apache.org/jira/browse/PIG-4721
>             Project: Pig
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 0.15.0
>            Reporter: Nathan Smith
>            Assignee: Nathan Smith
>            Priority: Trivial
>             Fix For: 0.16.0
>
>         Attachments: PIG-4721.patch
>
>
> http://pig.apache.org/docs/r0.15.0/func.html#isempty
> The documentation example uses a left outer join, but this produces a flat tuple, which is invalid for IsEmpty. I believe the example in the docs should be:
> {code}
> SSN = load 'ssn.txt' using PigStorage() as (ssn:long);
> SSN_NAME = load 'students.txt' using PigStorage() as (ssn:long, name:chararray);
> /* do a cogroup of SSN with SSN_Name */
> X = COGROUP SSN by ssn, SSN_NAME by ssn;
> /* only keep those ssn's for which there is no name */
> Y = filter X by IsEmpty(SSN_NAME);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)