Github user MikeThomsen commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2560#discussion_r175838320
--- 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 --
Also, again, complex key names simply wouldn't have any value to over 99%
of Mongo users. As I said, I'm sure there's a few random users that want to
chuck something like this in Mongo:
```
{
"user.name": "john.smith",
"user.contact.email": "[email protected]"
}
```
Accommodating that would be detrimental to providing a consistent tool for
the vast majority of Mongo users.
---