I am try to impletement following scenario. I take two values from database table and map them to flowfile content and if there a match, then add a new column to flowfile with database content.
In my database, I have :
locationID|storeID|siteName
___________________________
121 | 3232 | Colombo1
342 | 34343| Colombo2
In my flowfile I have only locationID
and storeID
locationID,storeID
121,3232
342,34343
I want to match them with database records and add a new column to flowfile as siteName
with respective data.
So final result should be:
locationID,storeID,siteName
121,3232,Colombo1
342,34343,Colombo2
For doing this I have tried QueryDatabaseTableRecord
, but dont understand how to do this mapping thing with this.
Or do I have to use an external script for doing this?
EDIT : I use TimeScaleDB(Postgresql) database