gerritbot added a comment.
Change 533108 **merged** by Smalyshev:
[wikidata/query/blazegraph@master] Fix Concurrent modification on
non-grouping query with aggregates
https://gerrit.wikimedia.org/r/533108
TASK DETAIL
https://phabricator.wikimedia.org/T172113
EMAIL PREFERENCES
http
gerritbot added a comment.
Change 533108 had a related patch set uploaded (by Igor Kim; owner: Igor Kim):
[wikidata/query/blazegraph@master] Fix Concurrent modification on
non-grouping query with aggregates
https://gerrit.wikimedia.org/r/533108
TASK DETAIL
https://phabricator.wikimed
WikidataFacts added a comment.
Note that this can also occur on grouping queries:
SELECT ?x (COUNT(*) AS ?total) (SUM(?y) AS ?ys) (?ys/?total AS ?ratio) WHERE {
?x wdt:P31 wd:Q1.
BIND(1 AS ?y)
}
GROUP BY ?x
And an alternative workaround is to inline the variables into the SELECT, i. e. (SUM(?
Esc3300 added a comment.
If it's the same as on this, I think it broke on February 22.TASK DETAILhttps://phabricator.wikimedia.org/T172113EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Esc3300Cc: Esc3300, Aklapper, Smalyshev, Lucas_Werkmeister_WMDE, PokestarF
Smalyshev added a comment.
Workaround:
SELECT ?total ?mandatory (?mandatory/?total AS ?ratio) WHERE {
{
SELECT (COUNT(*) AS ?total) (COUNT(?status) AS ?mandatory) WHERE {
?property p:P2302 ?statement.
OPTIONAL { ?statement pq:P2316 ?status. }
}
}
}TASK DETAILhttps://phabricator.wikimedia.org/