Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikidata, Wikidata-Query-Service.
Herald added a subscriber: Aklapper.
Herald added a project: Discovery.

TASK DESCRIPTION

Query:

SELECT ?labelEn ?labelDe WHERE {
  BIND(wd:Q1 AS ?item)
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en".
    ?item rdfs:label ?labelEn.
  }
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "de".
    ?item rdfs:label ?labelDe.
  }
}

java.lang.RuntimeException: there can be only one "run last" join in any group

I happen to know why the error occurs because I saw a related patch: the label service optimizer adds a hint:Prior hint:runLast true. hint to the label service unless there’s another explicit hint (which also means that there’s a simple workaround if you know about it: add hint:Prior hint:runLast false. to the second label service). But for anyone else who isn’t that familiar with the internal implementation of the label service, this message is extremely confusing, because there’s no hint:runLast to be seen in the query (even if you can make the connection from “"run last" join” to hint:runLast).

It should be possible to get labels and descriptions for multiple languages without an explicit query hint.


TASK DETAIL
https://phabricator.wikimedia.org/T175840

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Smalyshev, Lucas_Werkmeister_WMDE, Aklapper, GoranSMilovanovic, QZanden, EBjune, merbst, Avner, debt, Gehel, Jonas, FloNight, Xmlizer, Izno, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to