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

TEXT(?t) broken and E2E Tests didn't catch it #238

Closed
niklas88 opened this issue Apr 17, 2019 · 0 comments
Closed

TEXT(?t) broken and E2E Tests didn't catch it #238

niklas88 opened this issue Apr 17, 2019 · 0 comments
Assignees
Labels

Comments

@niklas88
Copy link
Member

niklas88 commented Apr 17, 2019

I just noticed that the TEXT(?t) for a text query like (on scientists):

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

is broken as it shows the wrong snippets. On Wikidata + Wikipedia I also get unexpectedly empty results with TextOperationWithFilter for example for the "Astronauts who walked on the moon" text query example (which is also not used in the E2E Tests) but TextOperationWithoutFiler at least yields results. Even weirder running the current version on our existing Clueweb + Freebase index crashes on text operations.

I've used git bisect to identify a6b4775 as the first commit where the TEXT(?t) failure on scientists occurs. Reverting that commit on master results in a working "Astronauts who walked on the moon" text query with the Wikipedia + Wikidata index but only when the ?time_in_space part is removed, which triggers TextOperationWithoutFilter to be used. So it looks like TextOperationWithFilter is separately broken though subtly as it seems to work on Scientists (it is used in the above query).

That said worse than the bug itself is that the E2E tests don't care at all about the TEXT(?t) content and that TextOperationWithFilter is not triggered by any of those queries (though as I said I couldn't yet trigger the problem seen on Wikipedia+Wikidata on Scientist).

@niklas88 niklas88 added the very important very important issue with priority label Apr 17, 2019
@niklas88 niklas88 self-assigned this Apr 17, 2019
@niklas88 niklas88 changed the title TextOperation* broken and E2E Tests didn't catch it TEXT(?t) broken and E2E Tests didn't catch it Apr 17, 2019
@niklas88 niklas88 added bug and removed very important very important issue with priority labels Apr 17, 2019
niklas88 added a commit that referenced this issue Apr 24, 2019
Fix TEXT(?t) broken by sentinel removal (#238)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant