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 query planning for join with SERVICE clause #1422

Merged
merged 4 commits into from
Aug 1, 2024

Conversation

joka921
Copy link
Member

@joka921 joka921 commented Jul 29, 2024

There is a bug in the optimization introduced by #1341, which checks whether the sibling operand of a join with a SERVICE operations has a small result (and if yes, passes that result to the SERVICE clause as VALUES in order to reduce the result size of the SERVICE call). Instead of just adding the sibling operand to the existing Service operation (which led to an object that should have been const being changed), now a new Service operation that includes the sibling is created. In particular, this fixes https://qlever.cs.uni-freiburg.de/osm-planet, which worked before #1341 and now works again as it should.

Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.64%. Comparing base (0ae5ce1) to head (242c3ff).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1422      +/-   ##
==========================================
+ Coverage   89.38%   89.64%   +0.26%     
==========================================
  Files         340      343       +3     
  Lines       29727    29948     +221     
  Branches     3309     3314       +5     
==========================================
+ Hits        26570    26846     +276     
+ Misses       1999     1957      -42     
+ Partials     1158     1145      -13     

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

Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

1-1 with Johannes, thanks a lot for the fix, minor changes

Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

Awesome!

@hannahbast hannahbast changed the title Fix the query planning of the Service when siblings are added. Fix the query planning for joins involving SERVICE clauses Aug 1, 2024
@hannahbast hannahbast changed the title Fix the query planning for joins involving SERVICE clauses Fix query planning for joins with SERVICE clauses Aug 1, 2024
Copy link

sonarcloud bot commented Aug 1, 2024

@hannahbast hannahbast changed the title Fix query planning for joins with SERVICE clauses Fix query planning for join with SERVICE clause Aug 1, 2024
@hannahbast hannahbast merged commit 3a6a791 into ad-freiburg:master Aug 1, 2024
20 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