hpcc-systems/HPCC-Platform — Issue #1785: Thor vs hthor = different results
Author: RichardTaylorHPCC
Created: 2012-03-07 19:31:23+00:00
State: open

//This code works correctly on hthor, but not on Thor (in both 3.4 and 3.6 releases)

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

*/