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

Limit produces results in the wrong order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • None
    • None

    Description

      Script:

      A = load 'studenttab200m' as (name, age, gpa);
      B = filter A by age > 20;
      C = group B by name;
      D = foreach C generate group, COUNT(B) PARALLEL 16;
      E = order D by $0 PARALLEL 16;
      F = limit E 10;
      --explain F;
      dump F;

      Output:

      comes out not sorted on the name

      Attachments

        1. PIG-461.patch
          4 kB
          Alan Gates

        Activity

          People

            gates Alan Gates
            olgan Olga Natkovich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: