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

Typecast with as-clause fails for tuple/bag with an empty schema

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Following script fails with trunk(0.17).

      a = load 'test.txt' as (mytuple:tuple (), gpa:float);
      b = foreach a generate mytuple as (mytuple2:(name:int, age:double));
      store b into '/tmp/deleteme';
      

      2017-05-16 09:52:31,280 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2999: Unexpected internal error. null

      (This is a continuation from the as-clause fix at PIG-2315 and follow up jira PIG-4933)

        Attachments

        1. pig-5235-v01.patch
          6 kB
          Koji Noguchi

          Activity

            People

            • Assignee:
              knoguchi Koji Noguchi
              Reporter:
              knoguchi Koji Noguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: