Correctly handle temporal type Time zone. #328
Labels
datatype
Related to supporting or bugs with current supported datatypes.
GA-1
All the issues that are issues in release(Scheduled Dec 2023)
high-priority
qa-verified
label to mark issues that were verified by QA
A MySQL Datetime is similar to a String, it is not dependent of the server time zone.
A MySQL Timestamp is similar to a DateTime in CH, it is dependent of the server time zone.
How to reproduce :
in MySQL, set
in the my.cnf
in CH, set
Replicate https://github.com/Altinity/clickhouse-sink-connector/blob/develop/sink-connector/tests/data_types.sql
Compare the temporal tables. As the server time zones are the same, the DateTime and Timestamps should return the same values.
see also #312
ClickHouse/ClickHouse#7083
Using clickhouse-client, casting a CSV file containing data to a String on the client side creates a DateTime matching the original String on the server side. If the client time zone is different and the String is cast to a DateTime on the client, the DateTime will not match the original String.
The text was updated successfully, but these errors were encountered: