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
I'm working with some very old timestamp data in JSON format.
When I'm reading with a defined schema, parsing fails when using TIMESTAMPTZ on a timestamp which has a second precision offset.
D SELECT'1880-05-15T12:00:00+00:50:20'::TIMESTAMPTZ;
Conversion Error: timestamp field value out of range: "1880-05-15T12:00:00+00:50:20", expected format is (YYYY-MM-DD HH:MM:SS[.US][±HH:MM| ZONE])
LINE1: SELECT'1880-05-15T12:00:00+00:50:20'::TIMESTAMPTZ;
It already works for TIMETZ:
D SELECT'12:00:00+00:50:20'::TIMETZ;
┌──────────────────────────────────────────────────┐
│ CAST('12:00:00+00:50:20'ASTIME WITH TIME ZONE) │
│ time with time zone │
├──────────────────────────────────────────────────┤
│ 12:00:00+00:50:20 │
└──────────────────────────────────────────────────┘
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with some very old timestamp data in JSON format.
When I'm reading with a defined schema, parsing fails when using
TIMESTAMPTZ
on a timestamp which has a second precision offset.It already works for
TIMETZ
:Beta Was this translation helpful? Give feedback.
All reactions