Move GROUP_BY from SQL to clojure group-by Move to-many into VendorAdapters, use array_agg for adapters which support it and a. use string_agg in SQL and str/split in Clojure and use attributes to ...
CREATE OR REPLACE FUNCTION evergreen.array_remove_item_by_value(inp ANYARRAY, el ANYELEMENT) RETURNS anyarray AS $$ SELECT ARRAY_AGG(x.e) FROM UNNEST( $1 ) x(e) WHERE x.e <> $2; $$ LANGUAGE SQL; ...