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

Actually use Operation::knownEmptyResult fixes #42 #120

Merged
merged 1 commit into from
Sep 6, 2018
Merged

Actually use Operation::knownEmptyResult fixes #42 #120

merged 1 commit into from
Sep 6, 2018

Conversation

niklas88
Copy link
Member

@niklas88 niklas88 commented Sep 3, 2018

This PR changes QueryExecutionTree so that it actually calls the Operation::knownEmptyResult() methods for its own knownEmptyResult(). I also moved the optimization of computing the result of a scan if it's simple to its own getSizeEstimate().

This would make PR #108 superflous but I don't think that change hurts and it does feel a bit risky to estimate zero sized results.

Also I still need to add a test case on scientists but it's not super easy to trigger as only Filter is currently known to create 0 size estimates and only with appropriately sized inputs.

@niklas88 niklas88 added this to Review in QLever Sep 3, 2018
@niklas88 niklas88 requested review from joka921 and removed request for floriankramer September 6, 2018 09:08
This would make PR #108 superflous but I don't think that change hurts and it
does feel a bit risky to estimate zero sized results.
QLever automation moved this from Review to Review Approved Sep 6, 2018
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.

Approved as discussed this afternoon.

@niklas88 niklas88 merged commit 316eaf4 into ad-freiburg:master Sep 6, 2018
QLever automation moved this from Review Approved to Done Sep 6, 2018
@niklas88 niklas88 deleted the fix_qet_known_empty_result branch October 31, 2018 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
QLever
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants