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

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

Commit 5c8753fe15cffeca4d79ddf84d63791caee0582d in nifi's branch 
refs/heads/main from EndzeitBegins
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=5c8753fe15 ]

NIFI-13643 mapOf returns a FieldValue with a Map instead of a Record

Signed-off-by: Pierre Villard <[email protected]>

This closes #9163.


> mapOf returns a Record instead of the declared RecordFieldType.MAP
> ------------------------------------------------------------------
>
>                 Key: NIFI-13643
>                 URL: https://issues.apache.org/jira/browse/NIFI-13643
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: endzeit
>            Assignee: endzeit
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The Record Path standalone function {{mapOf}} introduced in NIFI-12538 
> returns a 
> [Record|https://github.com/apache/nifi/blob/main/nifi-commons/nifi-record/src/main/java/org/apache/nifi/serialization/record/Record.java]
>  (in the form of a 
> [MapRecord|https://github.com/apache/nifi/blob/main/nifi-commons/nifi-record/src/main/java/org/apache/nifi/serialization/record/MapRecord.java]).
> At the same time it declares the {{RecordFieldType}} of the {{RecordField}} 
> returnes, as the function name might suggest, as
> {code:java}
> RecordFieldType.MAP.getMapDataType(RecordFieldType.STRING.getDataType())
> {code}
>  
> The implementation should be adjusted to instead return a {{RecordField}} 
> with a {{Map<String, String}} value to align with the declared schema.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to