Create UDF with two input parameters , Execution Type - All values of queue
//Parameter 1 - Row
//Parameter 2 - JDBC Lookup output
//Argument name 1- row type String
//Argument name 2 - input type String
for (int i =0;i<row.length;i++)
{
result.addValue(input[i]);
result.addContextChange();
}Map like below logic:
Map Row -->UDF Param 1
-----> Map output of UDF to Target Field
Map JDBCLookup Output1 --> RemoveContext-->UDF Param 2
Map Row -->UDF Param 1
-----> Map output of UDF to Target Field
Map JDBCLookup Output2 --> RemoveContext-->UDF Param 2
Map Row -->UDF Param 1
-----> Map output of UDF to Target Field
Map JDBCLookup Output3 --> RemoveContext-->UDF Param 2
Let me know if it works!
Thank you,
Justin
Note: The above logic was written under an assumption that no.of rows will always be equal to the no.of outputs produced by JDBC lookup..







.jpg)

