hpcc-systems/ecl-ml — Issue #106: Thor vs hthor = different results
Author: RichardTaylorHPCC
Created: 2012-03-07 19:24:38+00:00
State: open

//This code works correctly on hthor, but not on Thor (in the 3.4 (rc1), 3.4.2 (1), and 3.6 (1) builds)

ds_dow := dataset(['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'], {string dat});
ds_month := dataset(['January', 'February', 'March', 'April'], {string dat});

a := output(ds_dow, ,'~RTtest::dayofweek',overwrite);
b := output(ds_month, ,'~RTtest::month',overwrite);

//*****************************************

ds := dataset([{'~RTtest::dayofweek'}, {'~RTtest::month'}], {string path});

dat1 := record
string dat;
end;

datRec := record
dataset(dat1) datChild := dataset([], dat1);
string path;
end;
datrec tReadData({string path} l) := transform
paths := l.path;
self.datChild := dataset(l.path, {string dat}, thor, opt);
self.path := paths;
end;
ds_dat := project(ds, tReadData(left));

c := output(ds_dat);
sequential(parallel(a,b),c);

/* should get (as result 3):

sunday
monday
tuesday
wednesday
thursday
friday
saturday
~RTtest::dayofweek
January
February
March
April
~RTtest::month

And does get that on hthor, but running on Thor gets this:

sunday
monday
tuesday
wednesday
thursday
friday
saturday
~RTtest::dayofweek
sunday
monday
tuesday
wednesday
thursday
friday
saturday
~RTtest::month

*/