Repository navigation
feat(datagrid): show pgvector columns as vectors, not long text - #3725
Merged
Merged
Conversation
datlechin
enabled auto-merge (squash)
October 20, 2026 21:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vector,halfvecandsparsevectypes on connect, and spells a column read from a table with its dimension count fromPQfmod:vector(1536).vectorcolumn type. The grid draws[0.0123, -0.0456, 0.0789, …] 1536 dimsinstead of the whole literal.vector(n)column and names the column, before anything reaches the server. The viewer disables OK on a wrong length.'', which pgvector refuses.Not in this PR
vector(n),halfvec(n)andsparsevec(n)in the Structure type picker when the extension is installed: the picker has no source for extension base types without a new PluginKit API. Typingvector(1536)there works today.Test plan
PgvectorTypesTests,VectorLiteralTests,ColumnTypeVectorTests,CellDisplayFormatterVectorTests,CellInteractionResolverVectorTests,FieldEditorResolverVectorTests,RowChangeStatementFactoryVectorTests. None compiles on main.PQfmod1536 on a table column,PQftable0 onv::vector(2), the server'sexpected 3 dimensions, not 2, and the probe skipping a composite namedvector.Screenshots
Before, a vector cell drew its literal,
[0.0989,0.0412,-0.0544,-0.1,…, to the column's edge. The old build would not launch under XCUITest here, so there is no before shot.Fixes #3599