Background: It’s common in Talend to use something like tSplitRow to map one row with many fields into multiple rows. A row with fields:
Date | Name | MorningPhone | Day Phone | EveningPhone
…could be split into:
Date | Name | Phone … and you’ll always have 3 resulting rows from one row.
Question: What if I want number of rows from a variable number of fields?
I have a schema: UniqueID | FieldSet where FieldSet is a delimited field of columns divisible by nine. If there are 45 fields, in this delimited column, I want 5 rows. 81 fields => 9 rows.
I’m trying to use tJavaRow to parse the fields, but I don’t know how to combine that with tSplitRow to generate the appropriate number of fields.
Ideas? Thanks!
I used a custom tJavaRow — this turned a specially formatted string into a new table. Sort of a hack, but it worked.