You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2022/05/05 07:19:28 UTC

[GitHub] [nifi] juldrixx commented on a diff in pull request #6011: NIFI-9983 Add output relation name attribute in QueryRecord processor

juldrixx commented on code in PR #6011:
URL: https://github.com/apache/nifi/pull/6011#discussion_r865616151


##########
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/QueryRecord.java:
##########
@@ -312,6 +317,7 @@ public void onTrigger(final ProcessContext context, final ProcessSession session
                     final QueryResult queryResult = query(session, original, readerSchema, sql, recordReaderFactory);
 
                     final AtomicReference<String> mimeTypeRef = new AtomicReference<>();
+                    final FlowFile originalFlowFile = original;

Review Comment:
   Yes I need a final variable an the inner class so I don't get this error: `Variable 'original' is accessed from within inner class, needs to be final or effectively final`.
   
   The same was done for the AbstractRecordProcessor class [here](https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AbstractRecordProcessor.java#L119).



-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org