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

Pig 0.9 error message not useful as compared to 0.8

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.1
    • None
    • None
    • Reviewed

    Description

      The below is my faulty script (note the usage of alias F) for which Pig 0.9 composes not so useful message as compared to 0.8;

      A = load 'input' using TextLoader as (doc:chararray) ;
      B = foreach A generate flatten(TOKENIZE(doc)) as myword;
      C = group B by myword parallel 30;
      D = foreach C generate group,COUNT(B) as count,SIZE(group) as size;

      E = order D by size parallel 5;
      >F = limit F 20;
      dump F;

      For this script , error message in 0.9
      >ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2240: LogicalPlanVisitor can only visit logical plan

      Error message in 0.8
      >ERROR 1000: Error during parsing. Unrecognized alias F

      Attachments

        1. PIG-2238-1_0.9.patch
          5 kB
          Daniel Dai
        2. PIG-2238-1.patch
          6 kB
          Daniel Dai
        3. PIG-2238-0.patch
          5 kB
          Daniel Dai

        Activity

          People

            daijy Daniel Dai
            vivekp Vivek Padmanabhan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: