Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-13081

FEW + MERGE on TABLE producing incorrect results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.4
    • Fix Version/s: 5.4.0
    • Component/s: Code Generator
    • Labels:
    • Environment:
      Four-node cluster running 5.0.4-rc2

      Description

      DataRec := RECORD
          UNSIGNED2   f1;
      END;
      
      dsTemp := DATASET
          (
              [1, 2, 3, 4, 5],
              DataRec
          );
      
      ds := DISTRIBUTE(dsTemp);
      
      TableRec := RECORD
          REAL8       average := AVE(GROUP, ds.f1);
      END;
      
      r1 := TABLE(ds, TableRec, FEW);
      OUTPUT(r1, NAMED('WithoutMerge'));
      
      r2 := TABLE(ds, TableRec, FEW, MERGE);
      OUTPUT(r2, NAMED('WithMerge'));
      

      The WithoutMerge result is correct, returning only one row of data. WithMerge, on the other hand returns the correct row and then three more empty rows (presumably one from each of other Thor nodes in the cluster).

      Both TABLE calls return the correct results if FEW is removed.

        Attachments

          Activity

            People

            Assignee:
            ghalliday Gavin Halliday
            Reporter:
            dcamper Dan S. Camper
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: