hpcc-systems / DataPatterns

HPCC Systems ECL bundle that provides some basic data profiling and research tools to an ECL programmer
3 stars 4 forks source link

BestRecordStructure output order is incorrect #34

Closed GordonSmith closed 5 years ago

GordonSmith commented 5 years ago

The RECORD and END are not in the correct order (END comes first):

NewLayout := RECORD
END;
//----------
NewLayout MakeNewLayout(OldLayout r) := TRANSFORM
    SELF.lon := (REAL8)r.lon;
    SELF.lat := (REAL8)r.lat;
    SELF := r;
END;
    REAL8 lon;
    REAL8 lat;
    STRING18 number;
    STRING300 street;
    STRING24 unit;
    STRING30 city;
    STRING17 district;
    STRING7 region;
    STRING10 postcode;
    STRING24 id;
    STRING16 hash;
dcamper commented 5 years ago

Fixed with PR#35