[
https://issues.apache.org/jira/browse/NIFI-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard updated NIFI-13643:
----------------------------------
Fix Version/s: 2.0.0-M5
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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
> Fix For: 2.0.0-M5
>
> Time Spent: 20m
> 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)