From b0d2211e302bb0b4c2f4955c2d06257bd2963c62 Mon Sep 17 00:00:00 2001 From: Oscar Laird Date: Mon, 8 Apr 2024 08:19:24 -0400 Subject: [PATCH] use relative file paths for CSV import in pinecone_medium_create.sql --- test/expected/pinecone_medium_create.out | 5 +---- test/sql/pinecone_medium_create.sql | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/test/expected/pinecone_medium_create.out b/test/expected/pinecone_medium_create.out index 234020b8..45f55f71 100644 --- a/test/expected/pinecone_medium_create.out +++ b/test/expected/pinecone_medium_create.out @@ -16,10 +16,7 @@ DROP TABLE IF EXISTS cities; CREATE TABLE cities (name text, coords vector(3)); \o -- COPY FROM CSV -copy cities(name, coords) -from '/home/oscar/cities_coordinates.csv' -delimiter ',' -csv header; +\copy cities(name, coords) FROM './test/data/cities_coordinates.csv' WITH CSV HEADER DELIMITER ','; -- CREATE INDEX -- mock create index INSERT INTO pinecone_mock (url_prefix, method, response) diff --git a/test/sql/pinecone_medium_create.sql b/test/sql/pinecone_medium_create.sql index fd40921d..4cc5ddda 100644 --- a/test/sql/pinecone_medium_create.sql +++ b/test/sql/pinecone_medium_create.sql @@ -19,10 +19,7 @@ CREATE TABLE cities (name text, coords vector(3)); \o -- COPY FROM CSV -copy cities(name, coords) -from '/home/oscar/cities_coordinates.csv' -delimiter ',' -csv header; +\copy cities(name, coords) FROM './test/data/cities_coordinates.csv' WITH CSV HEADER DELIMITER ','; -- CREATE INDEX -- mock create index