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

Fixing NearestNeighborRows only returning id column #274

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

silvanheller
Copy link
Member

The DBSelector Interface had two abstractions for nearest-neighbor search, one of which only returns ids & distances, the other one returns the full row. The second one is used e.g by the AverageColorRaster Feature which has the schema id, hist, raster and requires the raster for score-computation.

This PR fixes the cottontail implementation to avoid NPEs in AverageColorRaster. Thanks to @benzvera for pointing out the bug.
It also optimizes the countDistinctValues command, which only needs to retrieve the column for which it counts distinct values.

@silvanheller silvanheller self-assigned this Mar 7, 2022
Copy link
Member

@ppanopticon ppanopticon left a comment

Choose a reason for hiding this comment

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

Looks good.

@silvanheller silvanheller merged commit fbc6c55 into master Mar 7, 2022
@silvanheller silvanheller deleted the cottontail-nnrows-fix branch March 7, 2022 08:19
silvanheller added a commit that referenced this pull request Jun 10, 2022
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