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

describe with typecast on as-clause shows the types before the typecasting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.18.0
    • parser
    • None
    • Reviewed

    Description

      For code like

      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';
      

      describe b shows

      b: {mytuple2: (name: bytearray,age: bytearray)}
      

      Execution wise, it is fine since there is an extra foreach typecasting the above relation.

      Attachments

        1. pig-5243-v01.patch
          3 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: