You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2011/04/07 03:06:05 UTC

[jira] [Commented] (PIG-1584) deal with inner cogroup

    [ https://issues.apache.org/jira/browse/PIG-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016639#comment-13016639 ] 

Olga Natkovich commented on PIG-1584:
-------------------------------------

It looks like we already do not mention inner or outer keywords neither in the syntax of group/cogroup, nor in any discussions.

The only place I found the reference is in examples where I suggest to do the following:

- remove all examples from GROUP section that refer to INNER cogroup
- There is also example in the description of IsEmpty function that uses inner cogroup, it should be changed to an outer join as follows:

SSN = load 'ssn.txt' using PigStorage() as (ssn:long);

SSN_NAME = load 'students.txt' using PigStorage() as (ssn:long, name:chararray);

-- do a left out join of SSN with SSN_Name
X = JOIN SSN by ssn LEFT OUTER, SSN_NAME by ssn;

-- only keep those ssn's for which there is no name
Y = filter X by IsEmpty(SSN_NAME);


> deal with inner cogroup
> -----------------------
>
>                 Key: PIG-1584
>                 URL: https://issues.apache.org/jira/browse/PIG-1584
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Olga Natkovich
>            Assignee: Corinne Chandel
>             Fix For: 0.9.0
>
>
> The current implementation of inner in case of cogroup is in conflict with join. We need to decide of whether to fix inner cogroup or just remove the functionality if it is not widely used

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira