markap14 commented on a change in pull request #4934:
URL: https://github.com/apache/nifi/pull/4934#discussion_r604111650



##########
File path: 
nifi-commons/nifi-record/src/main/java/org/apache/nifi/serialization/record/util/DataTypeUtils.java
##########
@@ -645,6 +650,14 @@ private static boolean isRecordTypeCompatible(RecordSchema 
schema, Object value)
             return true;
         }
 
+        if (strict) {
+            if (value instanceof MapRecord) {

Review comment:
       MapRecord is a specific implementation of Record. I think we should be 
checking if `instanceof Record` here, and then casting to `Record` in the next 
line.




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


Reply via email to