kettle - How to get the reorder the column with csv input fixed column in pentaho -
scenario:
i have created transformation load data table csv file , have following columns in csv file:
- customer_id
- company_id
- employee_name
but user may give input file column ordering (random order)
- employee_name
- company_id
- customer_id
so, if try load file has random column ordering, kettle load correct column values per column names ... ?
using etl metadata injection
can use transformation this, either normalize data, or store database:
then need send correct data transformation. can read header line csv, , use row normaliser
convert format used etl metadata injection
.
i have included quick example here: csv_inject on dropbox, if make , run runs per csv file should work.
Comments
Post a Comment