jrsteinebrey commented on code in PR #8266:
URL: https://github.com/apache/nifi/pull/8266#discussion_r1461196749


##########
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/LookupRecord.java:
##########
@@ -487,7 +487,13 @@ public Set<Relationship> lookup(final Record record, final 
ProcessContext contex
                 final RecordPath recordPath = entry.getValue();
 
                 final RecordPathResult pathResult = 
recordPath.evaluate(record);
-                final List<FieldValue> lookupFieldValues = 
pathResult.getSelectedFields()
+                final List<FieldValue> allFieldValues = 
pathResult.getSelectedFields().toList();
+                if (allFieldValues.isEmpty()) {

Review Comment:
   @mattyb149 I refactored the code to avoid streaming twice. Please review 
again.



-- 
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-unsubscr...@nifi.apache.org

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

Reply via email to