You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/03/13 15:51:00 UTC

[jira] [Commented] (NIFI-6105) Arrays of records/maps not handled correctly in Record processors

    [ https://issues.apache.org/jira/browse/NIFI-6105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16791826#comment-16791826 ] 

ASF subversion and git services commented on NIFI-6105:
-------------------------------------------------------

Commit 2846d3c3c6e454f7960763bd69e36e879684a033 in nifi's branch refs/heads/master from Koji Kawamura
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2846d3c ]

NIFI-6105: Fix handling of arrays of records/maps in record utilities

Refactored to use the same check logic for Record and Map types

Signed-off-by: Matthew Burgess <ma...@apache.org>

This closes #3367


> Arrays of records/maps not handled correctly in Record processors
> -----------------------------------------------------------------
>
>                 Key: NIFI-6105
>                 URL: https://issues.apache.org/jira/browse/NIFI-6105
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> While investigating [this SO question|https://stackoverflow.com/questions/54981540/nifi-recordreader-recordwriter-serialization-error-illegaltypeconversionexcep], it was discovered that Arrays of RECORD type (whether Record or Map objects) are not being handled correctly, and as a result, the fields may be incorrectly ignored or set to null.
> Arrays (especially those of Object[] type) should be handled during conversion by creating a new array of the converted objects (Record -> Map, e.g.).



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