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] Created: (PIG-538) bincond can't work with flatten bags
Date Wed, 19 Nov 2008 00:09:44 GMT
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: Santhosh Srinivasan
             Fix For: types_branch


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