David Handermann created NIFI-9471:
--------------------------------------
Summary: PutKudu Row Object to String Conversion uses Incorrect
Format
Key: NIFI-9471
URL: https://issues.apache.org/jira/browse/NIFI-9471
Project: Apache NiFi
Issue Type: Bug
Components: Extensions
Affects Versions: 1.15.0, 1.11.3, 1.12.0
Reporter: David Handermann
Assignee: David Handermann
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.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)