From 8a2fe09fe7788f6795a00690aec886fe6c5cef51 Mon Sep 17 00:00:00 2001 From: Oscar Laird Date: Sat, 24 Feb 2024 11:54:00 -0500 Subject: [PATCH] Change return type of pinecone metric name functions to int4 --- sql/vector.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/vector.sql b/sql/vector.sql index b8e34751..a5f0efcf 100644 --- a/sql/vector.sql +++ b/sql/vector.sql @@ -101,13 +101,13 @@ CREATE FUNCTION vector_combine(double precision[], double precision[]) RETURNS d -- pinecone name functions -CREATE FUNCTION vector_l2_pinecone_metric_name() RETURNS cstring +CREATE FUNCTION vector_l2_pinecone_metric_name() RETURNS int4 AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; -CREATE FUNCTION vector_ip_pinecone_metric_name() RETURNS cstring +CREATE FUNCTION vector_ip_pinecone_metric_name() RETURNS int4 AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; -CREATE FUNCTION vector_cosine_pinecone_metric_name() RETURNS cstring +CREATE FUNCTION vector_cosine_pinecone_metric_name() RETURNS int4 AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; -- aggregates