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

Filters on text columns lead to a crash #144

Closed
floriankramer opened this issue Oct 30, 2018 · 1 comment
Closed

Filters on text columns lead to a crash #144

floriankramer opened this issue Oct 30, 2018 · 1 comment
Assignees

Comments

@floriankramer
Copy link
Member

The query

          SELECT ?x SCORE(?t) TEXT(?t) WHERE {
              ?x <is-a> <Scientist> .
              ?t ql:contains-entity ?x .
              ?t ql:contains-word "relati*" .
              FILTER(?t > Test)
          }
          ORDER BY DESC(SCORE(?t))

causes a crash due to a failed assertion when run on the scientist dataset.
The problem appears to be that the id is treated as a knowledge base index when creating the filter operation which then leads to the prefix decompression failing.
I'm already working on a fix by disallowing all filtering on text type columns as part of a greater change to the way filters interpret their right hand side argument.

@floriankramer floriankramer self-assigned this Oct 30, 2018
@floriankramer
Copy link
Member Author

I just noticed that the query was written for Wikidate and I ran it on the scientists dataset, this should still not crash, but the problem appears to be something different from what I originally suspected.

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

1 participant