[go: nahoru, domu]

Page MenuHomePhabricator

SERVICE bd:sample fail in case 0 result
Open, MediumPublicBUG REPORT

Description

Steps to Reproduce:
1/ On Google Chrome, visit a new property, never used on Wikidata, i.e : https://www.wikidata.org/wiki/Property_talk:P8027
2/ Click on "<random list>" link, on talk page
3/ Wait

Actual Results:
Error message: "Erreur inconnue: Index: 0, Size: 0"

java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: org.openrdf.query.QueryEvaluationException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.Exception: task=ChunkTask{query=b2bc9edc-3516-4dec-ad9d-28876347567d,bopId=1,partitionId=-1,sinkId=3,altSinkId=null}, cause=java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Expected Results:
Display a result table with 0 result

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Reduced test cases:

# OK test case
SELECT * {
  SERVICE bd:sample { ?item wdt:P31 ?value. bd:serviceParam bd:sample.limit 1 }
}
# OK test case
SELECT * {
  SERVICE bd:sample { ?item wdt:P31 ?value. }
}
# KO test case
SELECT * {
  SERVICE bd:sample { ?item wdt:P8027 ?value. bd:serviceParam bd:sample.limit 1 }
}
# KO test case
SELECT * {
  SERVICE bd:sample { ?item wdt:P8027 ?value. }
}

This only seems to happen for entities/IRIs that exist, but are never used in a predicate position.

# KO test case
ASK {
  SERVICE bd:sample { ?item wd:Q1 ?value. }
}
# OK test case
ASK {
  SERVICE bd:sample { ?item wd:Q0 ?value. }
}
Gehel triaged this task as Medium priority.Sep 15 2020, 7:50 AM