Skip to content

Commit

Permalink
Fixed pinecone_metrics test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chitti-Ankith committed Apr 4, 2024
1 parent 3f78b5e commit f946e5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions test/expected/pinecone_metrics.out
Original file line number Diff line number Diff line change
@@ -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;
7 changes: 3 additions & 4 deletions test/sql/pinecone_metrics.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit f946e5c

Please sign in to comment.