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

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

Commit 29a3144dcd7ee7271a0859a3a9be79b212d65d96 in nifi's branch 
refs/heads/dependabot/npm_and_yarn/nifi-frontend/src/main/frontend/hono-4.12.12 
from Alaksiej Ščarbaty
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=29a3144dcd7 ]

NIFI-15807 Record path toString returns a string type (#11119)

The toString function previously returned a FieldValue that inherited
the source field's DataType instead of STRING. This caused type
mismatches when the source field was not already a string (e.g.
ARRAY[BYTE]).

> Invalid output field type in ToString record path function
> ----------------------------------------------------------
>
>                 Key: NIFI-15807
>                 URL: https://issues.apache.org/jira/browse/NIFI-15807
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 2.8.0
>            Reporter: Alaksiej Ščarbaty
>            Assignee: Alaksiej Ščarbaty
>            Priority: Major
>             Fix For: 2.10.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The {{toString()}} RecordPath function preserves the source field's data type 
> (e.g., LONG, INT) on the returned {{FieldValue}} instead of using STRING.
> When used with {{UpdateRecord}} to write the field, the destination field 
> inherits the source's numeric type, which is incorrect.  
> The output fields should always be of a STRING type.



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

Reply via email to