json - How to use to use Pentaho Kettle when we have 2 distinct arguments -
i new kettle , kind of stuck in this. want read json file , csv files, , change values in csv file according in json before storing it. example if have in csv row value saying "test", , in json {"key": "test", "value": "val"}, want replace "test" in csv "val" before storing in db.
however not sure how can that, think thing must use "user defined java class" step have no idea how access each argument individually inside it, since can seem able read csv rows 1 one.
i modifying existing csv file not best practice in case.
rather, suggest consider using kettle transform data , generate csv file fits bill desired result.
in generalized way possible, kindly @ following process (see screenshot below):
- retrieve data json input, retreive data csv file input;
- do magic/clean up/staging of data columns;
- join 2 streams on specific values;
- write new csv file or overwrite existing one;
i hope helps bit.
Comments
Post a Comment