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

expression with aggregate functions returning null, with accumulate interface

    XMLWordPrintableJSON

Details

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

    Description

      The problem is in trunk . It works fine in 0.6 branch.

      l = load '/tmp/students.txt' as (a : chararray,b : chararray,c : int);
      grunt> g = group l by 1;
      grunt> dump g;
      (1,

      {(asdfxc,M,23),(qwer,F,21),(uhsdf,M,34),(zxldf,M,21),(qwer,F,23),(oiue,M,54)}

      )
      grunt> f = foreach g generate SUM(l.c), 1 + SUM(l.c) + SUM(l.c);
      grunt> dump f;
      (176L,)

      Attachments

        1. PIG_1118.patch
          2 kB
          Ying He

        Activity

          People

            yinghe Ying He
            thejas Thejas Nair
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: