You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (Updated) (JIRA)" <ji...@apache.org> on 2012/03/02 00:42:57 UTC

[jira] [Updated] (PIG-2509) Util.getSchemaFromString fails with java.lang.NullPointerException when a tuple in a bag has no name (as when used in MongoStorage UDF)

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

Daniel Dai updated PIG-2509:
----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 0.9.3)
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Unit test pass. test-patch:
     [exec] -1 overall.  
     [exec] 
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec] 
     [exec]     +1 tests included.  The patch appears to include 3 new or modified tests.
     [exec] 
     [exec]     -1 javadoc.  The javadoc tool appears to have generated 1 warning messages.
     [exec] 
     [exec]     -1 javac.  The applied patch generated 904 javac compiler warnings (more than the trunk's current 900 warnings).
     [exec] 
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs warnings.
     [exec] 
     [exec]     -1 release audit.  The applied patch generated 533 release audit warnings (more than the trunk's current 530 warnings).

javac warning is caused by Antlr. javadoc and release audit warning is not related.

I don't feel a compelling reason to check it into 0.9 branch. Commit into 0.10/trunk first.

Thanks Jonathan!
                
> Util.getSchemaFromString fails with java.lang.NullPointerException when a tuple in a bag has no name (as when used in MongoStorage UDF)
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-2509
>                 URL: https://issues.apache.org/jira/browse/PIG-2509
>             Project: Pig
>          Issue Type: Bug
>          Components: piggybank
>    Affects Versions: 0.9.1
>         Environment: No, genetics!
>            Reporter: Russell Jurney
>            Assignee: Jonathan Coveney
>            Priority: Blocker
>              Labels: fun, happy, mongo, pants, sad, udf, util
>             Fix For: 0.10, 0.11
>
>         Attachments: PIG-2509-0.patch
>
>
> The MongoStorage UDF ( https://github.com/mongodb/mongo-hadoop ) fails on its call to Util.getSchemaFromString when a tuple is not named.  The call succeeds when the tuple is explicitly named.  As tuple naming is optional, this is a bug.
> See http://www.mail-archive.com/user%40pig.apache.org/msg04199.html and http://www.mail-archive.com/dev%40pig.apache.org/msg08016.html
> This makes me sad :(

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