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

UNION doesn't work in the latest code

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      mapred mode. local mode.has the same problem under linux.
      code is taken from trunk

    • Hadoop Flags:
      Reviewed

      Description

      grunt> a = load 'tmp/f1' using BinStorage();
      grunt> b = load 'tmp/f2' using BinStorage();
      grunt> describe a;
      a: {int,chararray,int,{(int,chararray,chararray)}}
      grunt> describe b;
      b: {int,chararray,int,{(int,chararray,chararray)}}
      grunt> c = union a,b;
      grunt> describe c;
      2009-02-27 11:51:46,012 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1052: Cannot cast bag with schema bag(

      {(int,chararray,chararray)}

      ) to tuple with schema tuple
      Details at logfile: /homes/amiry/pig_1235735380348.log

      dump a and dump b work fine.

      Sample data provided to dev team in an e-mail.

        Attachments

        1. PIG-690.patch
          3 kB
          Pradeep Kamath

          Activity

            People

            • Assignee:
              pkamath Pradeep Kamath
              Reporter:
              amirhyoussefi Amir Youssefi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: