Search code examples
splitmultiple-columnsetlpentahokettle

Pentaho/Kettle - Split Fields into two columns


im currently having trouble to split a column in pentaho that has the item ID at the begining. The main idea is to split the current column into "ItemID" and "ItemName" by "space" delimiter. I split the column with the space delimiter and get the "ItemID" correctly, but i can't get the "ItemName" completly.

Original column and the way that must be splited

In the resulting columns, "ItemID" is fine, but "ItemName" only gets the first part of the name. I have tried to change the lenght or Trim type, but i see no changes.

Result

I would really appreciate some help, many thanks in advance!


Solution

  • I worked around this by splitting in several strings the "ItemName", and then concatenating all together. For last the extra columns were deleted.

    Spliting