hpcc-systems/HPCC-Platform — Issue #1648: #OPTION example throws error
Author: bobf2000
Created: 2012-02-22 16:16:04+00:00
State: open

I'm trying to run one of the examples in the Language Reference Manual for #OPTION on page 346
I've modified the code to use an inline dataset, and without the #OPTION it runs fine.

//************************************
//This example demonstrates Logical Graphs and
// Javadoc-style comment blocks
#OPTION('generateLogicalGraphOnly',TRUE);
#OPTION('logicalGraphDisplayJavadocParameters',TRUE);

/**
* Defines a record that contains information about a person
*/
namesRecord :=
RECORD
string20 surname;
string10 forename;
integer2 age := 25;
END;

/**
Defines a table that can be used to read the information from the file
and then do something with it.
*/
namesTable := DATASET([{'Foreman','Bob',55},
{'Tomasso','Vincent',10},
{'Tomasso','Fred',46},
{'Jones','Billy',10},
{'Upton','Kate',19},
{'Buchler','Dave',33},
{'Speer','Dallas',20}
],namesRecord);

/**
Allows the name table to be filtered.
@param ages The ages that are allowed to be processed.
badForename Forname to avoid.
@return the filtered dataset.
*/
namesTable filtered(SET OF INTEGER2 ages, STRING badForename) :=
namesTable(age in ages, forename != badForename);

OUTPUT(filtered([10,20,33], ''));
//************************************

Submitting this in the latest Community Edition postes the following error:

Error: System error: 0: Workunit was compiled for eclagent interface version 0, this eclagent requires version 138..138 (0, 0), 0,

Please let me know if you need more information. Thanks!