Andrew Schofield created KAFKA-7776:
---------------------------------------

             Summary: Kafka Connect values converter parsing of ISO8601 not 
working properly
                 Key: KAFKA-7776
                 URL: https://issues.apache.org/jira/browse/KAFKA-7776
             Project: Kafka
          Issue Type: Bug
          Components: KafkaConnect
    Affects Versions: 2.0.0, 1.1.0
            Reporter: Andrew Schofield


In org.apache.kafka.connect.data.Values, the 
Values.convertToDate/Time/Timestamp methods are intended to be able to accept 
Strings in ISO8601 format and convert into the Kafka Connect formats. However, 
the parser for strings incorrectly tokenizes the strings (having real trouble 
with colons) which means that the correct ISO8601 format is never actual 
presented as a single piece to the code that converts it into java.util.Date.

The parser needs to be enhanced to accept an ISO8601 string as a single token, 
probably only when it knows that the intended use is as one of the date-based 
logical types.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to