marcel.gent.86:
Thanks for the reply, this will work, however i am looking for a more generic solution.
Say i have following example:
query from database or file import or any other data importing will get me following data
col1 | col2 | col3
--------------------------------------
value1 | value2 | value3
value1 | value2 | value3
then i want to run a javascript, and make the output data like below:
col1 | col2 | col3 | col4 | col5 |.... col_N
----------------------------------------------------------------------
value1 | value2 | value3 | value4 | value5 | ............
value1 | value2 | value3 | Value4 | value5 | ...........
The reason is I want to make this javascript as a function so that any workflow can use.
One of my use case is the input data might contains xml/json, i want to dynamically parse it and flatten all the nodes/variables to a single column to the output schema.
Thanks