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

Pradeep Kamath updated PIG-538:
-------------------------------

    Attachment: PIG-538.patch

> 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.

Reply via email to