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

Give file location for loadcaster related warning and errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.17.0
    • None
    • None
    • Reviewed

    Description

      Loadcaster can be null due to bug like PIG-4974, or due to valid reasons when bytearray is returned by UDF or bytearray coming from union-ed relation with two different loadcasters.

      And when casting fails at runtime, it's sometimes not straightforward to find the corresponding typecast that's failing in your script.

      Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 1075: Received a bytearray from the UDF or Union from two different Loaders. Cannot determine how to convert the bytearray to string.
              at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POCast.getNextString(POCast.java:1122)
      

      Maybe we can add source location when possible.

      Attachments

        1. pig-5020-v03.patch
          26 kB
          Koji Noguchi
        2. pig-5020-v02.patch
          26 kB
          Koji Noguchi
        3. pig-5020-v01.patch
          25 kB
          Koji Noguchi

        Activity

          People

            knoguchi Koji Noguchi
            knoguchi Koji Noguchi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: