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 2026/04/09 14:50:00 UTC
[jira] [Commented] (NIFI-15809) Invalid output field type in ToBytes record path function
[ https://issues.apache.org/jira/browse/NIFI-15809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18072330#comment-18072330 ]
ASF subversion and git services commented on NIFI-15809:
--------------------------------------------------------
Commit ed4e1a6d77fa6ca9898b7b6731bf3a80a4924d9a in nifi's branch refs/heads/main from Alaksiej Ščarbaty
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=ed4e1a6d77f ]
NIFI-15809 Record path toBytes returns an ARRAY[BYTE] type (#11121)
The toBytes function previously returned a FieldValue that inherited
the source field's DataType instead of ARRAY[BYTE]. This caused type
mismatches when the source field was a string.
> Invalid output field type in ToBytes record path function
> ---------------------------------------------------------
>
> Key: NIFI-15809
> URL: https://issues.apache.org/jira/browse/NIFI-15809
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 2.8.0
> Reporter: Alaksiej Ščarbaty
> Assignee: Alaksiej Ščarbaty
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The {{toBytes()}} RecordPath function preserves the source field's data type (e.g., STRING) on the returned {{FieldValue}} instead of using ARRAY.
> When used with {{UpdateRecord}} to write the field, the destination field inherits the source's type, which is incorrect.
> The output fields should always be of a ARRAY type.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)