pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheolsoo Park (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-3940) NullPointerException writing .pig_header for field with null name (in JsonMetadata.java)
Date Mon, 19 May 2014 21:39:43 GMT

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

Cheolsoo Park updated PIG-3940:
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.13.0
           Status: Resolved  (was: Patch Available)

Committed to trunk. Thank you Philip!

> NullPointerException writing .pig_header for field with null name (in JsonMetadata.java)
> ----------------------------------------------------------------------------------------
>
>                 Key: PIG-3940
>                 URL: https://issues.apache.org/jira/browse/PIG-3940
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.12.0
>            Reporter: Philip (flip) Kromer
>            Assignee: Philip (flip) Kromer
>              Labels: PigStorage, schema, storage
>             Fix For: 0.13.0
>
>         Attachments: 0001-Fixed-NullPointerException-writing-.pig_header-for-f.patch
>
>
> Pig throws an NPE writing .pig_header for field with null name. Attached patch has it
instead write field name as '$i' corresponding to the field's zero-based position -- i.e.,
if the second field is unnamed, its header will be written as $1.
> {code}
> Caused by: java.lang.NullPointerException
> 	at org.apache.pig.builtin.JsonMetadata.storeSchema(JsonMetadata.java:319)
> 	at org.apache.pig.builtin.PigStorage.storeSchema(PigStorage.java:578)
> 	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputCommitter.storeCleanup(PigOutputCommitter.java:144)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message