Skip to content

Commit 27fa987

Browse files
.Net: Bump DuckDB.NET.Data from 1.0.1 to 1.1.1 in /dotnet (microsoft#8969)
Bumps [DuckDB.NET.Data](https://github.com/Giorgi/DuckDB.NET) from 1.0.1 to 1.1.1. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Giorgi/DuckDB.NET/commit/4f882277be758b08140311674b14cb5f1d63af40"><code>4f88227</code></a> Update to DuckDB v1.1.1</li> <li><a href="https://github.com/Giorgi/DuckDB.NET/commit/90d91800f7707ea54f34d717f9f5c995ca73e2bc"><code>90d9180</code></a> Add SQLNULL Type</li> <li><a href="https://github.com/Giorgi/DuckDB.NET/commit/823ccd785d3b645682c7b58f1f2d957dcf3e9280"><code>823ccd7</code></a> Make properties read-only</li> <li><a href="https://github.com/Giorgi/DuckDB.NET/commit/10fa1b677a0a92e8631ecae48d8a861ebfa53580"><code>10fa1b6</code></a> Add API to get progress report</li> <li><a href="https://github.com/Giorgi/DuckDB.NET/commit/1ccf91b28476e4b5a1f096edcd517b5aeb5e1015"><code>1ccf91b</code></a> Merge branch 'bind-value' into develop</li> <li><a href="https://github.com/Giorgi/DuckDB.NET/commit/4fd76ae6ea89670f9bef5ba89b2513f35c299148"><code>4fd76ae</code></a> Skip arm builds during nightly</li> <li><a href="https://github.com/Giorgi/DuckDB.NET/commit/5a4e58da02a8370eb2349af9cad0f85c47e3e03c"><code>5a4e58d</code></a> Add win-arm64 support to runtime identifiers (<a href="https://redirect.github.com/Giorgi/DuckDB.NET/issues/213">#213</a>)</li> <li><a href="https://github.com/Giorgi/DuckDB.NET/commit/67dc268a8e8d13a0dde99e47e73d06ecfa4064c8"><code>67dc268</code></a> Revert &quot;Tweak DuckDB download logic&quot;</li> <li><a href="https://github.com/Giorgi/DuckDB.NET/commit/93bfa51a5c343e46c476e91d174ebcb246145f4a"><code>93bfa51</code></a> Update release notes</li> <li><a href="https://github.com/Giorgi/DuckDB.NET/commit/dfab27546a0a3be473879cb1da82943769dcc100"><code>dfab275</code></a> Merge branch 'nightly-builds' into develop</li> <li>Additional commits viewable in <a href="https://github.com/Giorgi/DuckDB.NET/compare/1.0.1...1.1.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=DuckDB.NET.Data&package-manager=nuget&previous-version=1.0.1&new-version=1.1.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: westey <[email protected]>
1 parent ae29d87 commit 27fa987

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dotnet/Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
<!-- Plugins -->
7777
<PackageVersion Include="DocumentFormat.OpenXml" Version="3.1.0" />
7878
<PackageVersion Include="Microsoft.Data.Sqlite" Version="8.0.8" />
79-
<PackageVersion Include="DuckDB.NET.Data.Full" Version="1.0.2" />
80-
<PackageVersion Include="DuckDB.NET.Data" Version="1.0.1" />
79+
<PackageVersion Include="DuckDB.NET.Data.Full" Version="1.1.1" />
80+
<PackageVersion Include="DuckDB.NET.Data" Version="1.1.1" />
8181
<PackageVersion Include="MongoDB.Driver" Version="2.28.0" />
8282
<PackageVersion Include="Microsoft.Graph" Version="[4.51.0, 5)" />
8383
<PackageVersion Include="Microsoft.Identity.Client.Extensions.Msal" Version="[2.28.0, )" />

dotnet/src/Connectors/Connectors.Memory.DuckDB/Database.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public async IAsyncEnumerable<DatabaseEntry> GetNearestMatchesAsync(
118118

119119
using var cmd = conn.CreateCommand();
120120
cmd.CommandText = $@"
121-
SELECT key, metadata, timestamp, embedding, (embedding <=> {embeddingArrayString}) as score FROM {TableName}
121+
SELECT key, metadata, timestamp, embedding, list_cosine_similarity(embedding, {embeddingArrayString}) as score FROM {TableName}
122122
WHERE collection=${nameof(collectionName)} AND len(embedding) > 0 AND score >= {minRelevanceScore.ToString("F12", CultureInfo.InvariantCulture)}
123123
ORDER BY score DESC
124124
LIMIT ${nameof(limit)};";

0 commit comments

Comments
 (0)