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

POCast throws exception for certain sequences of LOAD, FILTER, FORACH

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.6.0
    • 0.6.0
    • None
    • None

    Description

      When using a custom load/store function, one that returns complex data (map of maps, list of maps), for certain sequences of LOAD, FILTER, FOREACH pig script throws an exception of the form -

      org.apache.pig.backend.executionengine.ExecException: ERROR 1075: Received a bytearray from the UDF. Cannot determine how to convert the bytearray to <actual-type>
      at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POCast.getNext(POCast.java:639)
      ...
      Looking through the code of POCast, apparently the operator was unable to find the right load function for doing the conversion and consequently bailed out with the exception failing the entire pig script.

      Attachments

        1. PIG-1191-1.patch
          1 kB
          Daniel Dai
        2. PIG-1191-2.patch
          15 kB
          Pradeep Kamath

        Activity

          People

            pkamath Pradeep Kamath
            ankur Ankur Bansal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: