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

FILTER EXISTS breaks LIMIT #1315

Open
mielvds opened this issue Aug 23, 2024 · 2 comments
Open

FILTER EXISTS breaks LIMIT #1315

mielvds opened this issue Aug 23, 2024 · 2 comments

Comments

@mielvds
Copy link

mielvds commented Aug 23, 2024

When running the following query, I get 10000 results (the result limit) while I expected 1.

prefix premis: <http://www.loc.gov/premis/rdf/v3/>
select distinct * where {
  ?id a premis:File .
  filter exists {
    ?id a premis:File .
  }
} limit 1

Unfortunately, I can't share the dataset, which makes reproducing the issue difficult, but the limit should work in any case. I'm not sure, but it only seems to happen when the result size is larger or equal to the configured limit of 10000. We're using version 7.2.6-7. Furthermore, this also breaks the use of OFFSET, which no longer has any effect.

I tried a similar query

select distinct * where {
?p a schema:Person.
filter exists {
?p a schema:Person.
}
} limit 1

on https://dbpedia.org/sparql, but that works fine.

@HughWilliams
Copy link
Collaborator

HughWilliams commented Aug 23, 2024

You indicate running Virtuoso 7.2.6-7, which is not an official Virtuoso Open Source release and is rather old, thus where did you acquire it from? In any case, we would recommend that you upgrade to the latest Virtuoso 7.2.13 Open Source release and see if the problem persists.

Have you run a database integrity check to determine if there might be any corruption in the database?

@TallTed TallTed changed the title FILTER EXISTS breaks LIMIT FILTER EXISTS breaks LIMIT Aug 23, 2024
@mielvds
Copy link
Author

mielvds commented Sep 2, 2024

Sorry, the -7 is an image name by our service provider. I'll do a test locally.

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

No branches or pull requests

2 participants