materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Postgres inconsistency: date parsing fails due to unknown units

Open nrainer-materialize opened this issue 1 year ago • 0 comments

The following queries fail in mz but succeed in Postgres:

materialize=> select 'Jun 01 2023 11:22:33 +0000'::DATE;
ERROR:  invalid input syntax for type date: unknown units Jun: "Jun 01 2023 11:22:33 +0000"

materialize=> select 'Jun 01 2023 11:22:33 +0000'::TIMESTAMP;
ERROR:  invalid input syntax for type timestamp: unknown units Jun: "Jun 01 2023 11:22:33 +0000"

materialize=> select 'Jun 01 2023 11:22:33 +0000'::TIMESTAMPTZ;
ERROR:  invalid input syntax for type timestamp with time zone: unknown units Jun: "Jun 01 2023 11:22:33 +0000"

and

materialize=> SELECT 'Wed, Jun 01 2023 11:22:33 +0000'::TIMESTAMPTZ;
ERROR:  invalid input syntax for type timestamp with time zone: unknown units Wed: "Wed, Jun 01 2023 11:22:33 +0000"

nrainer-materialize avatar Feb 14 '24 11:02 nrainer-materialize