Skip to content

.Net: Fix Integration tests and a few small bugs. - #11778

Merged
westey (westey-m) merged 9 commits into
microsoft:feature-vector-data-preb2from
westey-m:azureaisearch-test-fixes
Apr 28, 2025
Merged

westey (westey-m) merged 9 commits into
microsoft:feature-vector-data-preb2from
westey-m:azureaisearch-test-fixes

Conversation

@westey-m

@westey-m westey (westey-m) commented Apr 28, 2025 •

Copy link
Copy Markdown
Contributor

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

@westey-m
westey (westey-m) requested a review from a team as a code owner April 28, 2025 17:28
@markwallace-microsoft Mark Wallace (markwallace-microsoft) added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel memory labels Apr 28, 2025
@github-actions github-actions Bot changed the title Fix AzureAISearch tests and two small bugs. .Net: Fix AzureAISearch tests and two small bugs. Apr 28, 2025
@westey-m westey (westey-m) changed the title .Net: Fix AzureAISearch tests and two small bugs. .Net: Fix Integration tests and two small bugs. Apr 28, 2025
@westey-m westey (westey-m) changed the title .Net: Fix Integration tests and two small bugs. .Net: Fix Integration tests and a few small bugs. Apr 28, 2025

@roji Shay Rojansky (roji) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly questions - definitely nothing blocking merging.

_ => throw new UnreachableException()
}
: (ReadOnlyMemory<float>)property.GetValueAsObject(dataModel!)!));
: (ReadOnlyMemory<float>?)property.GetValueAsObject(dataModel!)!));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've wondered about this - so we fully support record with null embeddings?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit: can also have a dynamic bool parameter to make this a tiny bit more explicit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@westey-m
westey (westey-m) merged commit a881464 into microsoft:feature-vector-data-preb2 Apr 28, 2025

This branch was previously deployed

1 inactive deployment
integration — 79c2b7cb Deployed Apr 28, 2025 by westey-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kernel Issues or pull requests impacting the core kernel memory .NET Issue or Pull requests regarding .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants