Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2017

consumeMap() fails with EmptyStackException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • None
    • None
    • Patch Available
    • Reviewed

    Description

      If a map is read in its serialized form, eg: key#value, then the consumeMap() method of Utf8StorageConverter fails for the following maps:

      [a#)]
      [a#}]
      [a#"take a look at my lovely curly brace, }"]
      [a#'oh look, a closed parenthesis! )']
      

      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.

      Attachments

        1. utf8storagepatch.txt
          1 kB
          Jacob Perkins
        2. utf8storagepatch_withtests.txt
          2 kB
          Jacob Perkins

        Activity

          People

            thedatachef Jacob Perkins
            thedatachef Jacob Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: