Github user mattyb149 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2778#discussion_r194241336
  
    --- Diff: 
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongoRecord.java
 ---
    @@ -131,7 +131,7 @@ public void onTrigger(final ProcessContext context, 
final ProcessSession session
                     for (String name : schema.getFieldNames()) {
                         document.put(name, contentMap.get(name));
                     }
    -                inserts.add(document);
    +                inserts.add(convertArrays(document));
    --- End diff --
    
    For future-proofing, perhaps this method should be called something like 
normalizeFields() or something?


---

Reply via email to