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

Fix the cost estimate of the Spatial Join operation #1700

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

ullingerc
Copy link
Collaborator

@ullingerc ullingerc commented Jan 4, 2025

Previously, the cost estimate of the SpatialJoin class didn't account for the cost of computing the children. This is now fixed.

The cost estimate didn't include the cost of the children previously. This bug led to non-sense output in the runtime information JSON output in some cases, because the RuntimeInformation::getOperationCostEstimate subtracted child cost estimates that were larger than the spatial join cost. The resulting negative number interpreted as size_t (unsigned) caused an output near 2**64. This is now fixed by adding the child cost to the spatial join cost estimate.
Copy link

codecov bot commented Jan 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.86%. Comparing base (2953f16) to head (523fb3b).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1700   +/-   ##
=======================================
  Coverage   89.85%   89.86%           
=======================================
  Files         389      389           
  Lines       37287    37288    +1     
  Branches     4204     4204           
=======================================
+ Hits        33505    33507    +2     
+ Misses       2483     2478    -5     
- Partials     1299     1303    +4     

☔ 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.

A very tiny suggestion just to make you aware of good and modern coding practices.

src/engine/SpatialJoin.cpp Outdated Show resolved Hide resolved
@ullingerc ullingerc requested a review from joka921 January 8, 2025 09:15
@sparql-conformance
Copy link

Copy link

sonarqubecloud bot commented Jan 8, 2025

@joka921 joka921 changed the title Fix wrong runtime information for spatial join cost estimate Fix the cost estimate of the Spatial Join operation Jan 8, 2025
@joka921 joka921 merged commit 6ac2e0e into ad-freiburg:master Jan 8, 2025
24 checks passed
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