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

Jonathan Coveney updated PIG-2509:
----------------------------------

    Fix Version/s: 0.11
                   0.9.3
                   0.10
         Assignee: Jonathan Coveney
           Status: Patch Available  (was: Open)

The fix basically just allows a tuple where it is explicitly called "null:" as 
in the case of "b:{null:(a:int)}". In such a case, it will just throw out the 
tuple name, which will make it equivalent to "b:{(a:int)}". Russell ran it and 
it worked. Russell, I did change it slightly, so it'd be lovely if you can try 
it again just to be sure.

I successfully applied to 0.9 and ran "ant test-commit", and applied it to 0.10 
and 0.11 and ran "ant -Dtestcase=TestSchema test."
                
> 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.9.3, 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

        

Reply via email to