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 (JIRA)" <ji...@apache.org> on 2011/04/29 23:05:03 UTC

[jira] [Resolved] (PIG-2017) consumeMap() fails with EmptyStackException

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

Daniel Dai resolved PIG-2017.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.0
         Assignee: Jacob Perkins
     Hadoop Flags: [Reviewed]

Test patch pass:
     [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 did not generate any warning messages.
     [exec] 
     [exec]     +1 javac.  The applied patch does not increase the total number of javac compiler warnings.
     [exec] 
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs warnings.
     [exec] 
     [exec]     +1 release audit.  The applied patch does not increase the total number of release audit warnings.

Unit test pass

Patch committed to both trunk and 0.9 branch. Thanks Jacob!

> consumeMap() fails with EmptyStackException
> -------------------------------------------
>
>                 Key: PIG-2017
>                 URL: https://issues.apache.org/jira/browse/PIG-2017
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Jacob Perkins
>            Assignee: Jacob Perkins
>             Fix For: 0.9.0
>
>         Attachments: utf8storagepatch.txt, utf8storagepatch_withtests.txt
>
>
> If a map is read in its serialized form, eg: [key#value], then the consumeMap() method of Utf8StorageConverter fails for the following maps:
> {code:none}
> [a#)]
> [a#}]
> [a#"take a look at my lovely curly brace, }"]
> [a#'oh look, a closed parenthesis! )']
> {code}
> There are a couple of options:
> 1. Define an escape sequence (ie. quotes or a backslash)
> 2. Call it a bad record, go get a beer, and move on.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira