Instead of doing a join, I want Nifi to first read all persons in a DB, and then for each person, I want it to bring the addresses. I know it is not the most efficient way, but we have some specific reasons for this.
The 'each person' part is resolved by using SplitAvro or SplitJson processor, but how can I get the ID for that current person and use it as parameter in next ExecuteSQL processor?
I have checked something similar to what I want, however the question is a little bit old (how to pass values dynamically in Apache NiFi from executeSQL to SelectHiveQL)
However the solution presented above seems more like a workaround for something that should be simple, I guess.
(In my case, I do not use Hive, both ExecuteSQL processor I use query on SQl Server DBs)