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
trino> SELECT TIME '01:23:45' AT TIME ZONE INTERVAL '1024' MINUTE;
_col0
----------------
16:27:45-17:04
we should also disallow:
trino> SELECT TIME '01:23:45' AT TIME ZONE INTERVAL '841' MINUTE;
_col0
----------------
13:24:45+14:01
because the offset 14:01 is beyond [-14:00, 14:00] reserved in TimeZoneKey and thus such time with time zone values cannot be fully supported in other parts of the code
trino> SELECT CAST(TIME '01:23:45' AT TIME ZONE INTERVAL '841' MINUTE AS timestamp with time zone);
Query 20210917_123847_00038_v8rf7 failed: Invalid offset minutes 841
Integer overflow:
we should also disallow:
because the offset 14:01 is beyond [-14:00, 14:00] reserved in
TimeZoneKey
and thus suchtime with time zone
values cannot be fully supported in other parts of the codecc @martint @losipiuk
The text was updated successfully, but these errors were encountered: