Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5890

Add Timestamp -> Date conversion support to DataTypeUtils

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.9.0
    • Extensions
    • None

    Description

      Timestamp to Date conversion fails with following Exception with rel/nifi-1.8.0 branch:

      [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)
      

      But NIFI-5333 added supporting this. This JIRA adds an unit test case to assert that conversion works.

      Attachments

        Issue Links

          Activity

            People

              mike.thomsen Mike Thomsen
              mike.thomsen Mike Thomsen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: