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

ASF GitHub Bot commented on NIFI-5890:
--------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/nifi/pull/3214


> 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
>             Fix For: 1.9.0
>
>
> 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