[source-mysql] MySQL source connector timezone issue #54718
Labels
area/connectors
Connector related issues
autoteam
community
needs-triage
team/extensibility
type/bug
Something isn't working
Connector Name
source-mysql
Connector Version
3.11.2
What step the error happened?
During the sync
Relevant information
I have a connection from MySQL to Snowflake using CDC.
The MySQL database has timezone Europe/Amsterdam
Source connector:
source-mysql v3.11.2
Read Changes using Change Data Capture (CDC)
Configured timezone: Europe/Amsterdam
JDBC url params: serverTimezone=Europe/Amsterdam
Destination connector:
destination-snowflake v3.15.4
no specific settings
There are 2 types of datetime columns in the source database:
In Snowflake they are stored as:
Say I have a record with:
created_at
with value2025-02-26 20:02:55
status_last_updated_at
with value2025-02-26 20:26:57
After the first full refresh:
created_at
becomes:2025-02-26 20:02:55.000000000 +01:00
status_last_updated_at
becomes2025-02-26 19:26:57.000000000
(the datetime is converted to UTC)But when this record is changed and processed through CDC, it changes:
created_at
stays:2025-02-26 20:02:55.000000000 +01:00
status_last_updated_at
becomes2025-02-26 20:26:57.000000000
Conclusion:
During the first load (full refresh), a MySQL datetime field is treated differently than during CDC.
Relevant log output
Contribute
The text was updated successfully, but these errors were encountered: