Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vector support #10789

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add vector support #10789

wants to merge 4 commits into from

Conversation

firtoz
Copy link

@firtoz firtoz commented Mar 24, 2024

Fixes #10056

Description of change

Based on #10138 - added more tests, the tests showed issues, fixed those issues.

The tests however require the pgvector extension set up for the server. On my machine I followed instructions from https://github.com/pgvector/pgvector - I don't know if the test runners are set up to support it? Can try to get it done if anyone can give me hints.

Also, when I did a npm run format it formatted some files I did not touch. I committed them here, can undo that if necessary.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run format to apply prettier formatting
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

@@ -601,10 +601,22 @@ export class PostgresQueryRunner
downQueries.push(this.dropIndexSql(table, index))
})
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were changed by npm run format

@@ -459,10 +459,8 @@ export class InsertQueryBuilder<
// add VALUES expression
if (valuesExpression) {
if (
(
this.connection.driver.options.type === "oracle" ||
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were changed by npm run format

@firtoz firtoz force-pushed the feat/vector branch 4 times, most recently from 6b8b07f to 2b60ebf Compare March 24, 2024 18:16
@firtoz
Copy link
Author

firtoz commented Mar 24, 2024

It seems pgvector installation is a bit difficult with docker, got stuck here :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant