[
https://issues.apache.org/jira/browse/NIFI-15808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18072619#comment-18072619
]
ASF subversion and git services commented on NIFI-15808:
--------------------------------------------------------
Commit bed442699a5ecc0ca99a38681fe34ab5e5dc5edb in nifi's branch
refs/heads/dependabot/npm_and_yarn/nifi-frontend/src/main/frontend/hono/node-server-1.19.13
from Alaksiej Ščarbaty
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=bed442699a5 ]
NIFI-15808 Record path toDate returns a timestamp type (#11120)
The toDate function previously returned a FieldValue that inherited
the source field's DataType instead of TIMESTAMP. Since toDate parses
strings into java.util.Date objects with full date+time precision,
TIMESTAMP is the correct output type to avoid loss of time components.
> Invalid output field type in ToDate record path function
> --------------------------------------------------------
>
> Key: NIFI-15808
> URL: https://issues.apache.org/jira/browse/NIFI-15808
> 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: 0.5h
> Remaining Estimate: 0h
>
> The {{toDate()}} RecordPath function preserves the source field's data type
> (e.g., STRING) on the returned {{FieldValue}} instead of using TIMESTAMP.
> 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 TIMESTAMP type.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)