pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Schlaikjer (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIG-2680) TOBAG output schema reporting
Date Thu, 03 May 2012 05:10:04 GMT
Andy Schlaikjer created PIG-2680:

             Summary: TOBAG output schema reporting
                 Key: PIG-2680
                 URL: https://issues.apache.org/jira/browse/PIG-2680
             Project: Pig
          Issue Type: Bug
          Components: internal-udfs
    Affects Versions: 0.10.0
            Reporter: Andy Schlaikjer

TOBAG only reports an output schema beyond {{{(NULL)}}} when all input field schemas match
deeply, including field schema aliases. This seems wrong to me. Shouldn't it just require
recursive type equality?

For relevant code, see:


    private boolean nullEquals(Schema currentSchema, Schema newSchema) {
        if(currentSchema == null){
            if(newSchema != null){
                return false;
            return true;
        return currentSchema.equals(newSchema);

The included patch modifies the return line to use {{Schema.equals(currentSchema, newSchema,
false, true)}} to avoid alias matching requirement.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message