nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [nifi] ijokarumawak commented on a change in pull request #3575: NIFI-6271, fix incoming flowfile attributes don't copy into output flowfiles when Output Batch Size is set
Date Wed, 10 Jul 2019 02:25:15 GMT
ijokarumawak commented on a change in pull request #3575: NIFI-6271, fix incoming flowfile
attributes don't copy into output flowfiles when Output Batch Size is set
URL: https://github.com/apache/nifi/pull/3575#discussion_r301863031
 
 

 ##########
 File path: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AbstractExecuteSQL.java
 ##########
 @@ -258,12 +261,14 @@ public void onTrigger(final ProcessContext context, final ProcessSession
session
                             final StopWatch fetchTime = new StopWatch(true);
 
                             FlowFile resultSetFF;
-                            if (fileToProcess == null) {
+                            if (fileToProcess == null)
                                 resultSetFF = session.create();
-                            } else {
+                            else
                                 resultSetFF = session.create(fileToProcess);
-                                resultSetFF = session.putAllAttributes(resultSetFF, fileToProcess.getAttributes());
-                            }
 
 Review comment:
   Will bring back the curly brackets to align with other lines.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message