Schema returned in UDF is not used by Pig

                 Key: PIG-528
             Project: Pig
          Issue Type: Bug
    Affects Versions: types_branch
            Reporter: Santhosh Srinivasan
            Assignee: Santhosh Srinivasan
             Fix For: types_branch

Using an identity UDF that returns the input schema as the output schema leads 
to schema truncation in Pig.


grunt> a = load '/' as (name, age, gpa);
grunt> b = foreach a generate IdentityFunc(name, age);

grunt> describe b;
b: {name: bytearray}
--It should have been b:{(name: bytearray, age: bytearray)}

The outputSchema method in IdentityFunc is given below:

    public Schema outputSchema(Schema input) {
        return input;  

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