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

error accessing column in output schema of udf having project-star input

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.1, 0.10.0
    • None
    • None

    Description

      (from Grahame's email) -

      describe a;
      a: {f1: int,f2: int,f3: int,f4: int,f5: int,f6: int,f7: int,f8: int,f9: int,f10: int}
      
      aa = FOREACH a GENERATE $0, TOTUPLE($2,$3,$4,$5);
      aaa = FOREACH aa GENERATE $0, $1.$0; -- OK
      aaa = FOREACH aa GENERATE $0, $1.f3; -- OK
      aaa = FOREACH aa GENERATE $0, $1.$1; -- OK
      aaa = FOREACH aa GENERATE $0, $1.f4; -- OK
      
      aa = FOREACH a GENERATE $0, TOTUPLE($2..$5); -- should be the same as above?
      aaa = FOREACH aa GENERATE $0, $1.$0; -- OK
      aaa = FOREACH aa GENERATE $0, $1.f3; -- ERROR
      aaa = FOREACH aa GENERATE $0, $1.$1; -- ERROR
      aaa = FOREACH aa GENERATE $0, $1.f4; -- ERROR
      

      Attachments

        1. PIG-2223.1.patch
          1 kB
          Thejas Nair
        2. PIG-2223.2.patch
          10 kB
          Thejas Nair
        3. PIG-2223.3.patch
          10 kB
          Thejas Nair
        4. PIG-2223.3.09.patch
          10 kB
          Thejas Nair

        Activity

          People

            thejas Thejas Nair
            thejas Thejas Nair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: