What is the best practice in Pentaho DI(Kettle) for converting a csv into a One to Many Relationship -


i new pentaho di(formerly kettle) , tasked taking csv data , populating tables in rdbms in "one many" relationship.

here example of how csv data structured:

orderid,customername, date,total cost,lineitemnumber, lineitemdesc,lineitemqty,lineitemcost 101655,mary smith,2016-02-08,6.25,1|2|3|4,lettuce|tomatoes|green onions|cucumbers,1|2|4|2,1.00|2.50|0.75|2.00 

note: multiple values seperated pipes(|)

i need convert following tables:

enter image description here

i have been looking several ways of doing didn't want miss simple due inexperience. advise appreciated.

i have come solution looks awfully complicated.

my solution

try using split fields rows step in pdi. give delimiter | (pipe) , give column/field want split.

check pentaho wiki more.

hope helps :)


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -