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

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

Commit 13a7f168604f20da3c837ce3bf91a3472a9708f1 in nifi's branch 
refs/heads/master from [~mike.thomsen]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=13a7f16 ]

NIFI-5890 Added a unit test that proves that 1.9 fixes a bug in the date 
conversion behavior in 1.8.

This closes #3214.

Signed-off-by: Koji Kawamura <[email protected]>


> Add Timestamp -> Date conversion support to DataTypeUtils
> ---------------------------------------------------------
>
>                 Key: NIFI-5890
>                 URL: https://issues.apache.org/jira/browse/NIFI-5890
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Extensions
>    Affects Versions: 1.8.0
>            Reporter: Mike Thomsen
>            Assignee: Mike Thomsen
>            Priority: Major
>
> Timestamp to Date conversion fails with following Exception with 
> rel/nifi-1.8.0 branch:
> {code}
> [ERROR] 
> testTimestampToDate(org.apache.nifi.serialization.record.TestDataTypeUtils)  
> Time elapsed: 0.008 s  <<< ERROR!
> org.apache.nifi.serialization.record.util.IllegalTypeConversionException: 
> Cannot convert value [2018-12-12 10:45:26.478] of type class 
> java.sql.Timestamp to Date for field null
>         at 
> org.apache.nifi.serialization.record.TestDataTypeUtils.testTimestampToDate(TestDataTypeUtils.java:67)
> {code}
> But NIFI-5333 added supporting this. This JIRA adds an unit test case to 
> assert that conversion works.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to