Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
5.0.4
-
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.