hpcc-systems / DataPatterns

HPCC Systems ECL bundle that provides some basic data profiling and research tools to an ECL programmer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BestRecordStructure output order is incorrect

GordonSmith opened this issue · comments

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;

Fixed with PR#35