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

Account for 0 graph size when initializing HNSW graph #13964

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

mayya-sharipova
Copy link
Contributor

When initializing a joint graph from one of the segments' graphs,
we always assume that a segment's graph is present. But later we want
to explore an option where some segments will not have graphs (#13447).

This change allows to account for missing graphs.

When initializing a joint graph from one of the segments' graphs,
 we always assume that a segment's graph is present. But later we want
 to explore an option where some segments will not have graphs (apache#13447).

This change allows to account for missing graphs.
Copy link

@john-wagster john-wagster left a comment

Choose a reason for hiding this comment

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

Right off this LGTM

Do we not need any additional tests for when graph size is zero? or is this covered by random tests but didn't surface until now?

@mayya-sharipova
Copy link
Contributor Author

@john-wagster Thanks for the review. I tried to write tests, but it needs a lot of setup and mocks, and I thought it does't worth.

But I plan to write integration kind of test that will cover the changed part as a part of #13447

@mayya-sharipova mayya-sharipova merged commit 26e0737 into apache:main Oct 31, 2024
3 checks passed
@mayya-sharipova mayya-sharipova deleted the adjust_merger branch October 31, 2024 14:22
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

Successfully merging this pull request may close these issues.

2 participants