[
https://issues.apache.org/jira/browse/NIFI-8768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Burgess updated NIFI-8768:
-------------------------------
Fix Version/s: 1.15.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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.14.0, 1.13.2
> Reporter: David Handermann
> Assignee: David Handermann
> Priority: Major
> Fix For: 1.15.0
>
> Time Spent: 1h
> 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)