Scope resolution operators in flattened schemas need to be fixed
----------------------------------------------------------------

                 Key: PIG-453
                 URL: https://issues.apache.org/jira/browse/PIG-453
             Project: Pig
          Issue Type: Bug
    Affects Versions: types_branch
            Reporter: Santhosh Srinivasan
            Assignee: Santhosh Srinivasan
            Priority: Minor
             Fix For: types_branch


Currently, the scope resolution operator :: is stored as part of the field 
schema alias. As a result, users may get confused by queries like:

{code}
a = load 'st10k' as (name, age, gpa);
b = group a by name;
c = foreach b generate flatten(a);
d = filter c by name != 'fred';
e = group d by name;
f = foreach e generate flatten(d);
g = foreach f generate name;
{code}

With PIG-451, the schema for f will have a column with aliases a::name and 
d::a::name. The use of d::a::name is particularly confusing.


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