[
https://issues.apache.org/jira/browse/NIFI-6096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16813481#comment-16813481
]
Matt Burgess commented on NIFI-6096:
------------------------------------
I think this might be an issue in the JsonReader rather than the conversion
utilities. It checks for numeric types, arrays, etc. but for all other objects
(Map, e.g.) it creates a MapRecord. We might be able to create a Map instead
(if the schema indicates MAP type) and have it converted correctly. Otherwise
we'll need more logic in things like isMapTypeCompatible() to check for
MapRecords (they must be "flat" with the same type for all fields to match the
element type in the schema, e.g.).
> ValidateRecord does not handle nested Map type correctly
> --------------------------------------------------------
>
> Key: NIFI-6096
> URL: https://issues.apache.org/jira/browse/NIFI-6096
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Joseph Percivall
> Assignee: Matt Burgess
> Priority: Major
> Attachments: Nested_map_record_failing_validation.xml
>
>
> When attempting to validate a map that was nested as such top-level record ->
> array of records -> value in record is a map, I hit the following error:
> "Value is of type org.apache.nifi.serialization.record.MapRecord but was
> expected to be of type MAP<STRING>"
> This is the same error in NIFI-5678. Attached is a template to reproduce the
> error.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)