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 bug for UNION with SUBQUERY with invisible variables #1682

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

joka921
Copy link
Member

@joka921 joka921 commented Dec 16, 2024

There was a bug in the following scenario: a UNION that is lazily computed and at least one of the inputs of the UNION contains a subquery that does not SELECT all possible variables. Then the UNION threw an assertion, because there was some confusion between the number of visible variables in the input (only the ones selected by the subquery) and the actual number of columns in the result (which includes the not-selected variables of the subquery).

Fixes #1681

Signed-off-by: Johannes Kalmbach <[email protected]>
@sparql-conformance
Copy link

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.75%. Comparing base (27f4799) to head (f58577e).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1682      +/-   ##
==========================================
- Coverage   89.76%   89.75%   -0.01%     
==========================================
  Files         389      389              
  Lines       37149    37150       +1     
  Branches     4194     4194              
==========================================
- Hits        33346    33344       -2     
- Misses       2502     2506       +4     
+ Partials     1301     1300       -1     

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

Awesome, thank you for the fix!

@hannahbast hannahbast changed the title Fix the bug of a SUBQUERY inside a lazy UNION Fix bug for UNION with SUBQUERY with invisible variables Dec 16, 2024
@hannahbast hannahbast merged commit 44c2b4f into ad-freiburg:master Dec 16, 2024
23 of 24 checks passed
@joka921 joka921 deleted the fix-column-bug-lazy-union branch December 18, 2024 09:39
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.

CONSTRUCT with UNIONs fails
2 participants