From 0aedb91d707ed5e274ae6050eafa5b67b15cfde8 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Mon, 6 Nov 2023 16:23:29 +0000 Subject: [PATCH] Disable sum(interval) and timezone(time) --- postgres.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postgres.cc b/postgres.cc index ba66c50..c87024d 100644 --- a/postgres.cc +++ b/postgres.cc @@ -414,6 +414,8 @@ schema_pqxx::schema_pqxx(std::string &conninfo, bool no_catalog, bool dump_state "AND NOT mz_functions.name like '%recv' " // https://github.com/MaterializeInc/materialize/issues/17870 "AND mz_functions.name <> 'pg_cancel_backend' " // pg_cancel_backend in this position not yet supported "AND mz_functions.name <> 'csv_extract' " // https://github.com/MaterializeInc/materialize/issues/22735 + "AND (mz_functions.name <> 'sum' OR mz_functions.return_type_id <> (select id from mz_types where name = 'interval')" // sum(interval) not yet supported + "AND (mz_functions.name <> 'timezone' OR mz_functions.argument_type_ids[1] <> (select id from mz_types where name = 'time')" // timezone with time type is intentionally not supported, see https://github.com/MaterializeInc/materialize/pull/22960 "AND NOT (" + procedure_is_aggregate + " or " + procedure_is_window + ") "); if (dump_state) {