Pig
  1. Pig
  2. PIG-2238

Pig 0.9 error message not useful as compared to 0.8

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.9.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

        Activity

        Daniel Dai made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Daniel Dai made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Assignee Daniel Dai [ daijy ]
        Resolution Fixed [ 1 ]
        Daniel Dai made changes -
        Attachment PIG-2238-1_0.9.patch [ 12496148 ]
        Daniel Dai made changes -
        Attachment PIG-2238-1.patch [ 12492203 ]
        Olga Natkovich made changes -
        Fix Version/s 0.9.1 [ 12317343 ]
        Daniel Dai made changes -
        Field Original Value New Value
        Attachment PIG-2238-0.patch [ 12491705 ]
        Vivek Padmanabhan created issue -

          People

          • Assignee:
            Daniel Dai
            Reporter:
            Vivek Padmanabhan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development