Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle all MySQL Timestamp types as UTC time #174

Merged

Conversation

Sevenannn
Copy link
Contributor

Handle all MySQL Timestamp as UTC time.

In MySQL, there's no timestamp with time zone type, and the retrieved value of timestamp type depends on the timezone per session, which depends on the default server timezone where the MySQL server is located in. https://dev.mysql.com/doc/refman/8.4/en/time-zone-support.html

image

To avoid the confusion caused by the default timezone of server, which varies from machine to machine, this PR implement changes to always configure session timezone to UTC, and the timestamp value retrived from MySQL will always be in UTC time.

@sgrebnov sgrebnov merged commit c0fa84c into datafusion-contrib:spiceai Nov 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants