Apache Nifi - Add attribute to Flow File based on Sql query resultset
Hi to all,
let's say i have a flow file with some given attributes.
What i want to achieve is to add flow attribute with a new one those value is retrieved from SQL Server query, where 2 existing attributes is passed in where clause(of course will return only one result)
Just for example
Current Flow file:
year = 2018
brand = audi
I would add a third attribute called "model" with value retrieved from a following query:
"SELECT model FROM cars WHERE year=${year} AND brand=${brand}"
I've searched around but not still found a good answer....
Tried evaluating lookup services but still not usable in this scenario.
Can anyone can point me on the right direction?
Many Thanks

