ASF subversion and git services commented on NIFI-4853:

Commit 25e0bbb68dfb26ee49216c53a481280c776cce45 in nifi's branch 
refs/heads/master from [~ca9mbu]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=25e0bbb ]

NIFI-4853 - Fixed PutMongoRecord handling of nested records

Signed-off-by: Pierre Villard <pierre.villard...@gmail.com>

This closes #2457.

> 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

Reply via email to