materialize
materialize copied to clipboard
Postgres inconsistency: date parsing fails due to unknown units
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"