Skip to content

Commit

Permalink
use relative file paths for CSV import in pinecone_medium_create.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarlaird committed Apr 8, 2024
1 parent 8fbff69 commit b0d2211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions test/expected/pinecone_medium_create.out
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 1 addition & 4 deletions test/sql/pinecone_medium_create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0d2211

Please sign in to comment.