You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presto fails to cast the timestamp representing the beginning of the Daylight saving time:
presto> select cast(varchar '2017-03-12 02:00:00' as timestamp);
Query 20181017_170049_38639_mwuxk failed: Value cannot be cast to timestamp: 2017-03-12 02:00:00
The text was updated successfully, but these errors were encountered:
This is a known issue. It should work because "TIMESTAMP" should have LocalDateTime semantics. However, "TIMESTAMP" in Hive has Instant semantics. Presto screwed up and gave "TIMESTAMP" Instant semantics. With Instant semantics, failing is the right behavior. (Potentially, there could be a lenient version in a function.)
This code will work if the new semantics is turned on. But the new semantics is not ready due to lack of connector support. And the new semantics is completely different.
Presto fails to cast the timestamp representing the beginning of the Daylight saving time:
The text was updated successfully, but these errors were encountered: