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

TextOperationWithFilter unexpectedly empty #239

Closed
niklas88 opened this issue Apr 17, 2019 · 0 comments · Fixed by #241
Closed

TextOperationWithFilter unexpectedly empty #239

niklas88 opened this issue Apr 17, 2019 · 0 comments · Fixed by #241
Assignees
Labels

Comments

@niklas88
Copy link
Member

On Wikidata the following query is unexpectedly empty:

PREFIX ql: <QLever-internal-function/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?astronautLabel ?time_in_space WHERE {
  ?astronaut wdt:P106 wd:Q11631 .
  ?astronaut rdfs:label ?astronautLabel .
  ?astronaut wdt:P2873 ?time_in_space .
  ?t ql:contains-entity ?astronaut .
  ?t ql:contains-word "walk* moon" .
  FILTER langMatches(lang(?astronautLabel), "en") .
}

Looking at the runtime information we see the following:

 │
 ├─ TextOperationWithFilter with  walk* moon
 │  result_size: 0 x 4
 │  columns: ?t, SCORE(?t), ?astronaut, ?time_in_space
 │  total_time: 19.00 ms
 │  operation_time: 19.00 ms
 │  cached: false
 │  ┬
 │  │
 │  ├─ Join on ?astronaut
 │  │  result_size: 542 x 2
 │  │  columns: ?astronaut, ?time_in_space
 │  │  total_time: 0.00 ms
 │  │  operation_time: 0.00 ms
 │  │  cached: false
 │  │  ┬
 │  │  │
 │  │  ├─ IndexScan ?astronaut <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q11631>
 │  │  │  result_size: 879 x 1
 │  │  │  columns: ?astronaut
 │  │  │  total_time: 0.00 ms
 │  │  │  operation_time: 0.00 ms
 │  │  │  cached: true
 │  │  │    OriginalTime: 0.00 ms
 │  │  │
 │  │  ├─ IndexScan ?astronaut <http://www.wikidata.org/prop/direct/P2873> ?time_in_space
 │  │  │  result_size: 545 x 2
 │  │  │  columns: ?astronaut, ?time_in_space
 │  │  │  total_time: 0.00 ms
 │  │  │  operation_time: 0.00 ms
 │  │  │  cached: false

However looking at earlier commits there should be 30 astronauts co-occuring with "walk* moon" (the result of the TextOperationWithFilter). Bisecting the problem, it looks like this is caused by the IdTable changes. The commit b6c398e is still good, 1f65a85 is already broken.

Interestingly the Scientist query in #238 also uses TextOperationWithFilter and works (apart from that issue of course).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants