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

PutKudu Row Object to String Conversion uses Incorrect Format

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.12.0, 1.11.3, 1.15.0
    • 1.16.0, 1.15.1
    • Extensions
    • None

    Description

      Improvements to timestamp handling for PutKudu in NIFI-6551 introduced several other changes to use DataTypeUtils.toString() for Kudu Types that required String values.  The second parameter of the DataTypeUtils.toString() method should be a format pattern to use when converting Date and Timestamp objects to strings, however, the AbstractKuduProcessor.buildPartialRow() method incorrectly passes the record field name as the second parameter, creating the potential for an IllegalArgumentException when PutKudu attempts to convert a Date or Timestamp to a String.  Passing the optional format property for the Record Field Data Type should correct the behavior.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            exceptionfactory David Handermann
            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 - 10m
                10m

                Slack

                  Issue deployment