-
Notifications
You must be signed in to change notification settings - Fork 26
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
Strange ParseException: format error, DATETIME Unparseable date. #8
Comments
Sorry I think the key point of this case may be the difference in time zone. |
Thank you for your answer. Here some details about os, with timezone.
|
also regarding the post: December 24, 2018: MaxCompute supports time zone configuration. I tried following configs but nothing changed.
|
I used Europe/Istanbul to upload 20110328035927, and the error occurred as you described.
I have checked some materials, and it seems that Turkey will switch to daylight saving time on the last Sunday of march every year, so I suspect that this error is related to daylight saving time, resulting in the exception of java.util.date. |
I'm sorry that this setting was not working. |
due to day saving time, the whole hour of 03:00 does not exists at all
|
In fact, at 2016 Turkish council have decided to left DST adjusting, since 2 years Turkey permanently using UTC+3 timezone. Also, as I know some of the other Europian countries also will leave DST too. related news turkey
It will be fine, thank you. |
I'm confused but yes, this timestamp really invalid because of daylight saving... Still, I am thinking of the differences between DateTime and TimeStamp data types.
Source: Data types I expect DateTime column doesn't respect which timezone using we are, unlike the TimeStamp. Am I wrong? |
@ktopcuoglu Datetime and Timestamp are both treated as UTC timestamp in MaxCompute, the only difference is precision. |
Hi there,
I can't load
20110328035927
value to either datetime or timestamp column. (with data format pattern: "yyyyMMddHHmmss").both tried odps.sql.type.system.odps2=true and false.
Also when i change input value, insert succeeded but query result returns input date with plus 6hours..
20110328000000
>>>>2011-03-28 06:00:00
Reproduce steps:
2nd try with successful insert, but adding 6 hours..
The text was updated successfully, but these errors were encountered: