Using Apache Nifi I want to create a batched list of values by extracting the primary key value from the flowfile content.
- GETHDFS
- SPLITCONTENT
- ROUTEONATTRIBUTE(just filters out filesizes less than 1.01 bytes due to code issue, don't mind this step)
- EVALUATEJSONPATH which produces the content: {"hist_idn":12345678,"filename":"Retry_Spark_HIST_IDN_12345678_I","reprocess_status":"N","reprocess_date":"2019-07-19 10:19:18"}
- From here I need help, my goal is to create a list of comma seperated hist_idn's then feed that into an executesql with the command: select * from History_table where hist_idn in (nifi generated comma seperated list)
Any help would be greatly appreciated.