hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Natkovich (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-538) bincond can't work with flatten bags
Date Wed, 03 Dec 2008 23:15:44 GMT

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

Olga Natkovich updated PIG-538:
-------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

patch tested and committed. thanks, pradeep

> bincond can't work with flatten bags
> ------------------------------------
>
>                 Key: PIG-538
>                 URL: https://issues.apache.org/jira/browse/PIG-538
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Pradeep Kamath
>             Fix For: types_branch
>
>         Attachments: PIG-538.patch
>
>
> The following script is user with trunk code to simulated outer join not directly supported
by pig:
> A = load '/studenttab10k' as (name: chararray, age: int, gpa: float);
> B = load 'votertab10k' as (name: chararray, age: int, registration: chararray, donation:
float);
> C = cogroup A by name, B by name;
> D = foreach C generate group, (IsEmpty(A) ? '' : flatten(A)), (IsEmpty(B) ? 'null' :
flatten(B));
> On types branch this gives syntax error and even beyond that not supported since bincond
requires that both expressions be of the same type. Santhosh suggested to have  special NULL
expression that matches any type. This seems to make sense.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message