You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (JIRA)" <ji...@apache.org> on 2018/02/07 23:21:01 UTC

[jira] [Updated] (NIFI-4853) PutMongoRecord doesn't handle nested records

     [ https://issues.apache.org/jira/browse/NIFI-4853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Burgess updated NIFI-4853:
-------------------------------
    Status: Patch Available  (was: In Progress)

> 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
>            Assignee: Matt Burgess
>            Priority: Major
>
> 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)