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

Better size estimate for SpatialJoin #1555

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

ullingerc
Copy link
Collaborator

@ullingerc ullingerc commented Oct 15, 2024

Up until now the SpatialJoin class always returned the product of the sizes of both children as its own size estimate. For a k-nearest-neighbor join this is usually way larger than the actual maximum size of the result. This PR implements a more precise size estimate.

@ullingerc ullingerc marked this pull request as ready for review October 15, 2024 12:21
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.46%. Comparing base (91c6184) to head (fd8f807).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1555      +/-   ##
==========================================
- Coverage   88.47%   88.46%   -0.02%     
==========================================
  Files         364      364              
  Lines       27534    27540       +6     
  Branches     3714     3715       +1     
==========================================
+ Hits        24362    24363       +1     
- Misses       1940     1945       +5     
  Partials     1232     1232              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

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

We can further improve this.

src/engine/SpatialJoin.cpp Outdated Show resolved Hide resolved
@sparql-conformance
Copy link

Copy link

sonarcloud bot commented Oct 17, 2024

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

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

Thank you very much for this quick fix.

@joka921 joka921 merged commit 2b4e6b3 into ad-freiburg:master Oct 18, 2024
21 of 22 checks passed
@ullingerc ullingerc deleted the spatialjoin-size-estimate branch October 18, 2024 06:37
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