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 transitive path planning #1824

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

RobinTF
Copy link
Collaborator

@RobinTF RobinTF commented Feb 20, 2025

Related to #1809 and #1780
This changes the query planning so that joins are distributively pushed into unions if applicable if the cost is lower this way.

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 first round of the reviews,
I have not yet looked at the E2E test failures.

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.

Found one more issue.

@RobinTF RobinTF marked this pull request as ready for review February 21, 2025 09:56
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 96.96970% with 4 lines in your changes missing coverage. Please review.

Project coverage is 90.36%. Comparing base (0daadaa) to head (1b53c2f).

Files with missing lines Patch % Lines
src/engine/QueryPlanner.cpp 96.49% 1 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1824      +/-   ##
==========================================
+ Coverage   90.20%   90.36%   +0.15%     
==========================================
  Files         400      400              
  Lines       38514    38624     +110     
  Branches     4319     4338      +19     
==========================================
+ Hits        34743    34903     +160     
+ Misses       2477     2418      -59     
- Partials     1294     1303       +9     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Some questions and suggestions.

@sparql-conformance
Copy link

Copy link

sonarqubecloud bot commented Mar 5, 2025

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.

Only a tiny suggestion left.

Comment on lines +169 to +171
AD_LOG_WARN << "Tried to re-sort a subtree that will already be sorted "
"with `Sort` with a different sort order. This is a bug."
<< std::endl;
Copy link
Member

Choose a reason for hiding this comment

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

This is not a bug per se but
The reason is possibly a missed optimization in the query planner.

Copy link
Member

Choose a reason for hiding this comment

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

So please rephrase this, so we don't get that many complaints of innocent users.

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