Changing a field from String to Int in Pentaho Data Integration

Dan picture Dan · Jan 21, 2014 · Viewed 21.8k times · Source

I am taking JSON information from our online API and producing it in a table with DI. I have 4 fields url, deviceId, displacement & timestamp. These are all recorded as Strings but I want them to be Int values, bar the url.

In the Generate Rows section I tried changing each parameter to an Int but the results would not show up but if I left them as Strings, it will post the results.

Any help on how I could change the data from type String to Int and still have my data reported?

Answer

Helping Hand.. picture Helping Hand.. · Jan 22, 2014

Take Select/Rename values Step, and change the data-type in meta-data section.