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

Cheolsoo Park updated PIG-3377:
-------------------------------

    Description: 
The following example demonstrates the issue:
{code}
a = LOAD 'foo' AS (m:map[]);
STORE a INTO 'bar' USING AvroStorage();
{code}
This fails with the following error:
{code}
java.lang.NullPointerException
    at 
org.apache.pig.impl.util.avro.AvroStorageSchemaConversionUtilities.resourceFieldSchemaToAvroSchema(AvroStorageSchemaConversionUtilities.java:462)
    at 
org.apache.pig.impl.util.avro.AvroStorageSchemaConversionUtilities.resourceSchemaToAvroSchema(AvroStorageSchemaConversionUtilities.java:335)
    at org.apache.pig.builtin.AvroStorage.checkSchema(AvroStorage.java:472)
{code}

  was:
The following example demonstrates the issue:
{code}
a = LOAD 'foo' AS (m:map[]);
b = FOREACH a GENERATE (chararray)m#'1';
STORE b INTO 'bar' USING AvroStorage();
{code}
This fails with the following error:
{code}
java.lang.NullPointerException
    at 
org.apache.pig.impl.util.avro.AvroStorageSchemaConversionUtilities.resourceFieldSchemaToAvroSchema(AvroStorageSchemaConversionUtilities.java:462)
    at 
org.apache.pig.impl.util.avro.AvroStorageSchemaConversionUtilities.resourceSchemaToAvroSchema(AvroStorageSchemaConversionUtilities.java:335)
    at org.apache.pig.builtin.AvroStorage.checkSchema(AvroStorage.java:472)
{code}

    
> New AvroStorage fails with untyped map
> --------------------------------------
>
>                 Key: PIG-3377
>                 URL: https://issues.apache.org/jira/browse/PIG-3377
>             Project: Pig
>          Issue Type: Bug
>          Components: internal-udfs
>            Reporter: Cheolsoo Park
>            Assignee: Cheolsoo Park
>             Fix For: 0.12
>
>
> The following example demonstrates the issue:
> {code}
> a = LOAD 'foo' AS (m:map[]);
> STORE a INTO 'bar' USING AvroStorage();
> {code}
> This fails with the following error:
> {code}
> java.lang.NullPointerException
>     at 
> org.apache.pig.impl.util.avro.AvroStorageSchemaConversionUtilities.resourceFieldSchemaToAvroSchema(AvroStorageSchemaConversionUtilities.java:462)
>     at 
> org.apache.pig.impl.util.avro.AvroStorageSchemaConversionUtilities.resourceSchemaToAvroSchema(AvroStorageSchemaConversionUtilities.java:335)
>     at org.apache.pig.builtin.AvroStorage.checkSchema(AvroStorage.java:472)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to