-
Notifications
You must be signed in to change notification settings - Fork 590
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
feat(postgres): support loading tables with pgvector column types
#9037
Conversation
We have support for a bare `vector` type, but `pgvector` also has precision.
fbb4bf3
to
0679e02
Compare
| FROM postgis/postgis:15-3.3-alpine | ||
| RUN apk add --no-cache postgresql15-plpython3 | ||
| COPY --from=pgvector-builder /usr/local/lib/postgresql/bitcode/vector.index.bc /usr/local/lib/postgresql/bitcode/vector.index.bc | ||
| COPY --from=pgvector-builder /usr/local/lib/postgresql/vector.so /usr/local/lib/postgresql/vector.so | ||
| COPY --from=pgvector-builder /usr/local/share/postgresql/extension /usr/local/share/postgresql/extension |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fun 😒
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wild, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
Also, sorry you had to fix this again 😞 |
Resolves #9025
We have had support for a bare
vectortype for a while, butpgvectordefinestheir vector type with precision, like
vector(3)which was breaking our dtypeparsing.
I've opted to check here if the type starts with
vectorand treat all of those asdt.unknown.For testing this, I've added
pgvectorto the postgres dockerfile -- if that'stoo heavy, we can maybe mock up something in the
postgres.sqlfile? But itdoes compile reasonably quickly on my machine (~4 seconds).