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

PigStorage's pushProjection implementation results in NPE under certain data conditions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0, 0.7.0
    • 0.7.0
    • None
    • None
    • Reviewed

    Description

      Under the following conditions, a NullPointerException is caused when PigStorage is used:
      If in the script, only the 2nd and 3rd column of the data (say) are used, the PruneColumns optimization passes this information to PigStorage through the pushProjection() method. If the data contains a row with only one column (malformed data due to missing cols in certain rows), PigStorage returns a Tuple backed by a null ArrayList. Subsequent projection operations on this tuple result in the NPE.

      Attachments

        1. PIG-1366.patch
          5 kB
          Pradeep Kamath

        Activity

          People

            pkamath Pradeep Kamath
            pkamath Pradeep Kamath
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: