Pentaho - Lenient data conversion



         Usage of Lenient Data Conversion

Recently while upgrading Pentaho from older version 4.1 to 6.x I face some issues related to backward compatibility.I noticed that behavior of Pentaho 4.1 to 6.x is different while validating the data.

On digging the source code of PDI on git, I understood the behavior change made by Pentaho.

 The behavior till Pentaho 4.1 was not to change the source data as much as possible i.e. 
If you have some spread sheet which you mapped some column as integer and the value provided is $12.Pentaho will try to parse '$12' and extract 12 and store it!

While in Pentaho 6.0 (I have see the behavior in 6.0,it may have been introduced earlier) what is called as 'strict data conversion' has been implemented and made as default behavior.As a result of this Pentaho will no more try to parse above '$12' however will through data validation error.

For users, who don't want to change earlier behavior and want to live with it, can go for backward compatibility mode by passing following argument to jvm - 

-DKETTLE_LENIENT_STRING_TO_NUMBER_CONVERSION=Y


Comments

Popular posts from this blog

How Istio service mesh can keep Spring Boot microservices light weight

My AWS study notes