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

Support for arrays and UUID #183

Closed
StanEgo opened this issue Apr 20, 2024 · 3 comments
Closed

Support for arrays and UUID #183

StanEgo opened this issue Apr 20, 2024 · 3 comments

Comments

@StanEgo
Copy link

StanEgo commented Apr 20, 2024

It would be nice to have support for arrays and UUID both in parameters and DuckDBAppender. DuckDB has a good vectors support, so working with embeddings (smth like float[4096]) could be very helpful.

@Giorgi
Copy link
Owner

Giorgi commented Apr 20, 2024

DuckDBParameter already supports UUID: https://github.com/Giorgi/DuckDB.NET/blob/develop/DuckDB.NET.Test/Parameters/GuidParameterTests.cs

DuckDBAppender added support for UUID two days ago but it's in a separate branch and will probably be released in May.

Array support for DuckDBParameter cannot be implemented currently because the C API does not support it: duckdb/duckdb#9365

I'll implement Arrays in DuckDBAppender if there is interest in it.

As a workaround, you can use this approach to insert/update Arrays or Lists: https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Connectors/Connectors.Memory.DuckDB/Database.cs

@Giorgi
Copy link
Owner

Giorgi commented May 22, 2024

UUID support for Appender was just published on NuGet.

@Giorgi Giorgi closed this as completed May 24, 2024
@Giorgi
Copy link
Owner

Giorgi commented May 28, 2024

List and Array support for Appender just landed in develop.

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

No branches or pull requests

2 participants