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

    https://github.com/apache/nifi/pull/2560#discussion_r175289508
  
    --- Diff: 
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongo.java
 ---
    @@ -196,6 +237,33 @@ public void onTrigger(final ProcessContext context, 
final ProcessSession session
             }
         }
     
    +    private void removeUpdateKeys(String updateKeyParam, Map doc) {
    +        String[] parts = updateKeyParam.split(",[\\s]*");
    +        for (String part : parts) {
    +            if (part.contains(".")) {
    --- End diff --
    
    Forgot to raise this earlier. Why are we doing a check if it contains a `.` 
? It will work only for complex keys and simple key will be ignored i.e. not 
removed, right?


---

Reply via email to