Matt Burgess created NIFI-4853:
----------------------------------

             Summary: PutMongoRecord doesn't handle nested records
                 Key: NIFI-4853
                 URL: https://issues.apache.org/jira/browse/NIFI-4853
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
            Reporter: Matt Burgess


PutMongoRecord works well with flat records, but when attempting to put in 
nested records (records whose fields are arrays or records themselves), the 
Mongo serializer doesn't know how to handle the complex NiFi record field types 
(such as MapRecord).

The fix is to traverse all fields in the record, transforming the fields (if 
necessary) to Java objects for use by the Mongo serializer(s). Something very 
similar was done for PutDruidRecord, and in fact there is a utility method 
DataTypeUtils.convertRecordFieldtoObject() that can perform this task.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to