i have a stream of JSON records that i convert it into CSV record successfully with this instruction. but now i want to merge this CSV records into one CSV file. below is that flow:
at step 5 i face with around 9K csv record, how do i merge it into one csv file using MergeRecord processor?
my csv header:
field1,field2,field3,field4,field5,field6,field7,field8,field9,field10,field11
some of this fields may be null and vary in records.



Minimum Number of RecordsandMaximum Number of Recordsare the ones that ultimately decide how the merge happens.CsvRecordSetWritercontroller service andSchema Write StrategytoDo not write schema