Skip to content

ToParentBlockJoin[Byte|Float]KnnVectorQuery needs to handle the case when parents are missing#12504

Merged
benwtrent merged 1 commit intoapache:mainfrom
benwtrent:bugfix/handle-missing-parents-better-knn-join
Aug 14, 2023
Merged

ToParentBlockJoin[Byte|Float]KnnVectorQuery needs to handle the case when parents are missing#12504
benwtrent merged 1 commit intoapache:mainfrom
benwtrent:bugfix/handle-missing-parents-better-knn-join

Conversation

@benwtrent
Copy link
Copy Markdown
Member

This is a follow up to: #12434

Adds a test for when parents are missing in the index and verifies we return no hits. Previously this would have thrown an NPE

Doesn't really justify a CHANGES update as its fixing an unreleased bug due to this previous change.

Copy link
Copy Markdown
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM. Returning 0 hits in these cases is what we do in ToParentBlockJoinQuery so it makes sense to me to behave consistently here.

@benwtrent benwtrent merged commit 18b56bd into apache:main Aug 14, 2023
@benwtrent benwtrent deleted the bugfix/handle-missing-parents-better-knn-join branch August 14, 2023 13:24
benwtrent added a commit that referenced this pull request Aug 14, 2023
…when parents are missing (#12504)

This is a follow up to: #12434

Adds a test for when parents are missing in the index and verifies we return no hits. Previously this would have thrown an NPE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants