-
Notifications
You must be signed in to change notification settings - Fork 145
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
Spark insert CH,Date will shift -1 day #343
Comments
Sounds like you are using Spark to read data from CSV and write into ClickHouse. |
the 2021-01-13 type is hive Date spark df.show insert to CH |
I cannot reproduce the reported issue. If you are still struggling with it, please provide reproducible code. |
Environment
Steps to reproduce
insert data is :
|2021-01| 2021-01-13|2021-05-19 08:00:00|2021-05-13| 1| |2021-05-13 19:21:07|2021-05-13 19:21:46
when use spark insert to CH, that 2021-01-13 change to 2021-01-12 . . . look like this
|2021-01| 2021-01-12|2021-05-19 08:00:00|2021-05-12| 1| |2021-05-13 19:21:07|2021-05-13 19:21:46
the local tz is Asia/Shanghai
the CH tz is Asia/Shanghai
Other descriptions
The text was updated successfully, but these errors were encountered: