-
Notifications
You must be signed in to change notification settings - Fork 318
Introduce SqlVectorFloat32 SqlType class for vector datatype support #3433
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
Merged
apoorvdeshmukh
merged 13 commits into
dotnet:main
from
apoorvdeshmukh:dev/vector/SqlVectorFloat32
Jun 25, 2025
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
811f433
Feature Extension Changes for Vector Datatype Support (#3209)
apoorvdeshmukh 44109e4
Add vector datatype support for Float32 with SqlVectorFloat32
apoorvdeshmukh 0abd4d2
Add test coverage for float32 vector datatype
apoorvdeshmukh d04dc5c
Merge remote-tracking branch 'origin/main' into dev/vector/SqlVectorF…
apoorvdeshmukh 5ddc4dd
Fix ref assembly for ci-package and add merge conflict resolutions fo…
apoorvdeshmukh c2033c5
Address review comments
apoorvdeshmukh 79f3583
Merge remote-tracking branch 'origin/main' into dev/vector/SqlVectorF…
apoorvdeshmukh cb6946f
Minor error msg correction
apoorvdeshmukh 5d58c6a
Disable vector tests until server image with vector support is availa…
apoorvdeshmukh f227c0b
Fix the check for vector null values
apoorvdeshmukh 810648a
Merge remote-tracking branch 'origin/main' into dev/vector/SqlVectorF…
apoorvdeshmukh 2e2b80a
Address review comments and CI failures
apoorvdeshmukh 897a6f6
Remove netcore SqlBulkCopy
apoorvdeshmukh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| <?xml version="1.0"?> | ||
| <docs> | ||
| <members name="SqlVectorFloat32"> | ||
| <SqlVectorFloat32> | ||
| <summary>Represents the 32-bit float vector datatype in SQL Server.</summary> | ||
| </SqlVectorFloat32> | ||
| <ctor1> | ||
| <param name="length"></param> | ||
| <summary> | ||
| Constructs a null vector of the given length. SQL Server requires vector arguments to specify their length even when null. | ||
| </summary> | ||
| <exception cref="T:System.ArgumentOutOfRangeException"> | ||
| Vector column length must be non-negative. | ||
| </exception> | ||
| </ctor1> | ||
| <ctor2> | ||
| <param name="values"></param> | ||
| <summary> | ||
| Constructs a vector with the given values. | ||
| </summary> | ||
| </ctor2> | ||
| <IsNull> | ||
| <inheritdoc/> | ||
| </IsNull> | ||
| <Null> | ||
| <summary> | ||
| Represents a null instance of the <see cref="SqlVectorFloat32"/> type without any attributes. | ||
| </summary> | ||
| <remarks> | ||
| This is equivalent to the C# <c>null</c> value. | ||
| </remarks> | ||
| </Null> | ||
| <Length> | ||
| <summary> | ||
| Returns the number of elements in the vector. | ||
| </summary> | ||
| </Length> | ||
| <Size> | ||
| <summary> | ||
| Returns the number of bytes required to represent this vector when communicating with SQL Server. | ||
| </summary> | ||
| </Size> | ||
| <Values> | ||
| <summary>Returns the vector values as a memory region. No copies are made.</summary> | ||
| <returns>An array of float32 values as <see cref="T:System.ReadOnlyMemory{System.Single}"/> value.</returns> | ||
| </Values> | ||
| <ToString> | ||
| <summary>Returns a JSON string representation of the vector. A new string is generated each time you call this method.</summary> | ||
| <returns>A JSON <see cref="T:System.String"/> value.</returns> | ||
| </ToString> | ||
| <ToArray> | ||
| <summary>Returns the vector values as an array of floats.</summary> | ||
| <returns>An array of <see cref="T:System.String"/> values.</returns> | ||
| </ToArray> | ||
| </members> | ||
| </docs> |
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.