-
Notifications
You must be signed in to change notification settings - Fork 1
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 set semantics bug #7
Conversation
Pull Request Test Coverage Report for Build 6657081957
💛 - Coveralls |
High level overview:
|
A clean-up of the implementation still needs to be done! |
…added test for passing of the error in the import
Everything above has been implemented. Are more tests needed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the docs comments, everything looks fine, great tests as well 👍
@surilindur Before we merge this, is it easy for you to test this in your setup with the aggregate store enabled? If so, can you check if this change solves your problem? If not, you can ignore this comment, and we can check it later for you. |
Thank you for looking into a fix! After changing to the branch here, I stopped getting results from any queries with the aggregate store enabled. After some additional investigation, I found out that using the branch here in base Comunica (master branch) causes this set of unit tests to fail: The failure seems to indicate missing quads from a match call (the same test file has two other failing tests):
If I find the time, I can look into what is going wrong, but if someone else has the time before it, that would be amazing! |
Hmm, good catch @surilindur. There might be an edge-case that we're forgetting about. We should probably delay merging this until we know for certain that this doesn't break anything in Comunica. |
This one seems to be happening consistently:
But it looks like just a timeout at a first glance? |
To clarify, the following cases from the
And then that random timeout from |
@surilindur That one also fails in the CI sometimes. Honestly, I don't know what it is about. I've tried reproducing locally, but to no avail. So no errors when running the integration and spec tests in query-sparql? |
The integration and spec tests in query-sparql seem to pass, yes. |
After trying out a lot of things, I realised the aggregate store option is toggled off in base Comunica by default. 😬 Enabling the Example failure in the spoiler here.
Hopefully that helps. Sorry about the confusion earlier. |
Oh okay, thank you! I had no idea. Sorry. 😦 What if I use query-sparql to query a single turtle document? Should the aggregated store support that? With the aggregate store enabled, query-sparql fails to produce results for this, but without the aggregate store it works:
The same behaviour seems to happen with the link traversal repository, as well. With just one triple pattern it works, but with two or more it fails. |
@surilindur So this fails only with the new aggregate store from this PR, but not with the old aggregate store? Or does it fail on both? |
After checking it again, using the query from the previous comment here, with the aggregate store enabled:
So if the non-link-traversal engines are not supposed to work with the aggregate store for querying a turtle document, then everything is fine. Why the link traversal one works with master branch and not the fix, I do not know. This is really confusing to me, so apologies for the spam and confusion. |
The aggregate store was designed mainly for link traversal, and is untested for regular querying. I would expect it to only break for TPF queries, but I may be forgetting about something, and the general breakage is not surprising.
👌
This is not ok indeed. And what exactly fails here? So the unit tests pass? |
I think I forgot to rebuild the link traversal engine because it seems to work now with the fix branch, as well. But it does not make sense, because I definitely did build it with the fix branch when some of the queries failed. |
No description provided.