You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Seth Wiesman (Jira)" <ji...@apache.org> on 2021/06/21 18:37:00 UTC

[jira] [Created] (FLINK-23073) Fix space handling in CSV timestamp parser

Seth Wiesman created FLINK-23073:
------------------------------------

             Summary: Fix space handling in CSV timestamp parser
                 Key: FLINK-23073
                 URL: https://issues.apache.org/jira/browse/FLINK-23073
             Project: Flink
          Issue Type: Bug
          Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
    Affects Versions: 1.14.0, 1.13.2
            Reporter: Seth Wiesman
            Assignee: Seth Wiesman


FLINK-21947 Added support for TIMESTAMP_LTZ in the CSV format by replacing java.sql.Timestamp.valueOf with java.time.LocalDateTime.parse. Timestamp.valueOf internally calls `trim()` on the string before parsing while LocalDateTime.parse does not. This caused a breaking change where the CSV format can no longer parse timestamps of CSV's with spaces after the delimiter. We should manually re-add the call to trim to revert the behavior.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)