Repository navigation
.Net: Fix Integration tests and a few small bugs. - #11778
westey (westey-m) merged 9 commits into
Conversation
Shay Rojansky (roji)
left a comment
There was a problem hiding this comment.
Mostly questions - definitely nothing blocking merging.
| _ => throw new UnreachableException() | ||
| } | ||
| : (ReadOnlyMemory<float>)property.GetValueAsObject(dataModel!)!)); | ||
| : (ReadOnlyMemory<float>?)property.GetValueAsObject(dataModel!)!)); |
There was a problem hiding this comment.
I've wondered about this - so we fully support record with null embeddings?
There was a problem hiding this comment.
I don't think we have tests that check this end to end, so not sure, but here if someone just defines their embedding type as nullable this code throws, which is what this fix is about at least.
| } | ||
|
|
||
| this.SetPropertyStorageName(property, storageName); | ||
| this.SetPropertyStorageName(property, storageName, type); |
There was a problem hiding this comment.
Small nit: can also have a dynamic bool parameter to make this a tiny bit more explicit.
There was a problem hiding this comment.
Yeah, let's change this later, the class needs more refactoring to not do this in other places too, and this isn't something I want to change at the last minute.
Motivation and Context
Fix AzureAISearch tests and two small bugs.
Improve MongoDB tests with a small fix too.
Fix CosmosNoSQL integration tests
Fixes for postgres and mongodb
Fixes for redis
Contribution Checklist