markap14 commented on a change in pull request #5126:
URL: https://github.com/apache/nifi/pull/5126#discussion_r645743107
##########
File path:
nifi-nar-bundles/nifi-jolt-record-bundle/nifi-jolt-record-processors/src/main/java/org/apache/nifi/processors/jolt/record/JoltTransformRecord.java
##########
@@ -349,11 +353,24 @@ public void onTrigger(final ProcessContext context,
ProcessSession session) thro
writer.beginRecordSet();
writer.write(transformedFirstRecord);
-
Record record;
+ // If multiple output records were generated, write them
out
+ for (int i = 1; i < transformedFirstRecords.size(); i++) {
Review comment:
This can just be a for-each loop
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]