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

Incorrect Date Parsing from String in Record Readers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.14.0, 1.13.2
    • Fix Version/s: 1.15.0
    • Component/s: Extensions
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                exceptionfactory David Handermann
                Reporter:
                exceptionfactory David Handermann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m