David Handermann created NIFI-14296:
---------------------------------------

             Summary: Record Timestamp object conversion can lose nanosecond 
precision
                 Key: NIFI-14296
                 URL: https://issues.apache.org/jira/browse/NIFI-14296
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
            Reporter: David Handermann
            Assignee: David Handermann


The Field Converter abstraction for Record Data Type conversion handles a 
variety of input object types, with specific Converter implementations for 
java.sql.Timestamp and java.time.LocalDateTime. The Converter for 
java.time.LocalDateTime can lose nanosecond precision for input objects of type 
java.util.Date and subclasses due to using the millisecond time for conversion 
to java.time.LocalDateTime. Since java.sql.Timestamp is a subclass of 
java.util.Date, but includes nanosecond precision, the conversion process 
should be corrected to preserve nanosecond precision in the output 
java.time.LocalDateTime.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to