tpalfy commented on a change in pull request #3977: NIFI-7007 Add update
functionality to the PutCassandraRecord processor.
URL: https://github.com/apache/nifi/pull/3977#discussion_r368672071
##########
File path:
nifi-nar-bundles/nifi-cassandra-bundle/nifi-cassandra-processors/src/main/java/org/apache/nifi/processors/cassandra/PutCassandraRecord.java
##########
@@ -193,6 +298,74 @@ public void onTrigger(ProcessContext context,
ProcessSession session) throws Pro
}
+ private Statement generateUpdate(String cassandraTable, RecordSchema
schema, String updateKeys, String updateMethod, Map<String, Object>
recordContentMap) {
Review comment:
I feel like this is a decent amount of logic. Could add some tests to cover
it.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services