Thu Jul 09, 2020 8:34 pm
Login Register Lost Password? Contact Us

Project plugin with counter throws error

Questions and comments related to the Pentaho Kettle and Spoon plugins

Thu Dec 24, 2015 10:37 am Change Time Zone

I tried to use the project plugin and call a transform function with the counter.
For this, i selected "yes" in the "Declare counter" dropdown in Project plugin's general tab.
When i executed the job with the above setup am getting the below error.
"ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : (24,35): error C2397: Identifier 'count' clashes with a reserved symbol"

Below is the equivalent ecl code generated by the job.
newPersonRS Trans(personDS input, integer count) := transform :=;
self.firstName := input.firstName;
self.lastName := input.lastName;
self.address := input.address;
self.state := input.state; :=; :=;
self.callcnt := 1;
ProjectedPersonDS := project(personDS,Trans(left, counter));
OUTPUT( ProjectedPersonDS);

Why is the HPCC plugin generating code with the counter paramater named as "count" (which is a reserved keyword) in the transform function definition?
Is there any way to override this issue or is this an existing issue which needs to be fixed?

Pls anyone help me out of this issue. Pentaho version used: 4.4.0
Posts: 15
Joined: Wed Jul 15, 2015 7:34 am

Mon Jan 04, 2016 2:46 pm Change Time Zone

There wasn't a conflict with the version of HPCC that existed when the plugin was developed. We will need to update it.
Posts: 21
Joined: Wed Apr 27, 2011 1:07 pm

Fri Jan 08, 2016 4:24 am Change Time Zone

Thanks Joe.
So, will you be raising any JIRA request for fixing this issue.
Posts: 15
Joined: Wed Jul 15, 2015 7:34 am

Return to Pentaho Kettle

Who is online

Users browsing this forum: No registered users and 1 guest