From 8da5beedd40da21337f19286bb38927bee06ea20 Mon Sep 17 00:00:00 2001 From: Tom Harding Date: Thu, 15 Feb 2024 15:08:27 +0100 Subject: [PATCH] More docs --- crates/connectors/ndc-postgres/src/schema.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/connectors/ndc-postgres/src/schema.rs b/crates/connectors/ndc-postgres/src/schema.rs index 6e0b9c17..a1ee4b88 100644 --- a/crates/connectors/ndc-postgres/src/schema.rs +++ b/crates/connectors/ndc-postgres/src/schema.rs @@ -437,6 +437,11 @@ fn make_procedure_type( let mut fields = BTreeMap::new(); let object_type_name = format!("{name}_response"); + // If int4 doesn't exist anywhere else in the schema, we need to add it here. However, a user + // can't filter or aggregate based on the affected rows of a procedure, so we don't need to add + // any aggregate functions or comparison operators. However, if int4 exists elsewhere in the + // schema and has already been added, it will also already contain these functions and + // operators. scalar_types .entry("int4".to_string()) .or_insert(models::ScalarType {