You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2021/07/12 12:43:00 UTC
[jira] [Updated] (NIFI-8768) Incorrect Date Parsing from String in
Record Readers
[ https://issues.apache.org/jira/browse/NIFI-8768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Handermann updated NIFI-8768:
-----------------------------------
Affects Version/s: 1.14.0
Status: Patch Available (was: In Progress)
> Incorrect Date Parsing from String in Record Readers
> ----------------------------------------------------
>
> Key: NIFI-8768
> URL: https://issues.apache.org/jira/browse/NIFI-8768
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.13.2, 1.14.0
> Reporter: David Handermann
> Assignee: David Handermann
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Multiple Record Reader implementations leverage {{DataTypeUtils.convertType()}} to convert field values to an expected type of object. The {{RecordFieldType.DATE}} indicates that the field should be converted into a {{java.sql.Date}} object and currently relies on {{DataTypeUtils.toDate()}} to handle the conversion. When the input value of {{convertType()}} is a String such as {{2000-01-01}}, the resulting {{java.sql.Date}} has one day subtracted, returning {{1999-12-31}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)