From f946e5c2e46af30ce84716cae47b8426585d64a4 Mon Sep 17 00:00:00 2001 From: Ankith Reddy Chitti Date: Thu, 4 Apr 2024 16:00:38 -0400 Subject: [PATCH] Fixed pinecone_metrics test --- test/expected/pinecone_metrics.out | 7 +++---- test/sql/pinecone_metrics.sql | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/test/expected/pinecone_metrics.out b/test/expected/pinecone_metrics.out index 8604769e..00da65d2 100644 --- a/test/expected/pinecone_metrics.out +++ b/test/expected/pinecone_metrics.out @@ -1,7 +1,6 @@ SET enable_seqscan = off; -ALTER SYSTEM SET pinecone.api_key = '5b2c1031-ba58-4acc-a634-9f943d68822c'; CREATE TABLE t (val vector(3)); -CREATE INDEX i2 ON t USING pinecone (val vector_l2_ops); -CREATE INDEX i1 ON t USING pinecone (val vector_ip_ops); -CREATE INDEX i3 ON t USING pinecone (val vector_cosine_ops); +CREATE INDEX i2 ON t USING pinecone (val vector_l2_ops) WITH (spec = '{"serverless":{"cloud":"aws","region":"us-west-2"}}'); +CREATE INDEX i3 ON t USING pinecone (val vector_cosine_ops) WITH (spec = '{"serverless":{"cloud":"aws","region":"us-west-2"}}'); +CREATE INDEX i1 ON t USING pinecone (val vector_ip_ops) WITH (spec = '{"serverless":{"cloud":"aws","region":"us-west-2"}}'); DROP TABLE t; diff --git a/test/sql/pinecone_metrics.sql b/test/sql/pinecone_metrics.sql index 8604769e..00da65d2 100644 --- a/test/sql/pinecone_metrics.sql +++ b/test/sql/pinecone_metrics.sql @@ -1,7 +1,6 @@ SET enable_seqscan = off; -ALTER SYSTEM SET pinecone.api_key = '5b2c1031-ba58-4acc-a634-9f943d68822c'; CREATE TABLE t (val vector(3)); -CREATE INDEX i2 ON t USING pinecone (val vector_l2_ops); -CREATE INDEX i1 ON t USING pinecone (val vector_ip_ops); -CREATE INDEX i3 ON t USING pinecone (val vector_cosine_ops); +CREATE INDEX i2 ON t USING pinecone (val vector_l2_ops) WITH (spec = '{"serverless":{"cloud":"aws","region":"us-west-2"}}'); +CREATE INDEX i3 ON t USING pinecone (val vector_cosine_ops) WITH (spec = '{"serverless":{"cloud":"aws","region":"us-west-2"}}'); +CREATE INDEX i1 ON t USING pinecone (val vector_ip_ops) WITH (spec = '{"serverless":{"cloud":"aws","region":"us-west-2"}}'); DROP TABLE t;