dydra / support

4 stars 1 forks source link

Broken filtering inside optional #57

Closed knoan closed 5 years ago

knoan commented 5 years ago

The following query fails with a generic error message (Query Execution Failed / An error was encountered) on any repository:

prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>

select * where {

     optional { ?0 rdfs:label ?label filter (?label = 'expected') }

}

The issue seems related to the use of the = operator inside optional: works as expected if optional is removed or = replaced with !=.

lisp commented 5 years ago

please identify a specific repository and a time in order that it is possible to examine the actual request. the described error does not reproduce in isolation for that given query.

knoan commented 5 years ago

https://dydra.com/metreeca/birt, right now.

I created a view with the query @ https://dydra.com/metreeca/birt/issue-57.html

knoan commented 5 years ago

As far as I can see the behaviour is reproducible: I just ran the query a new empty test repository and got the same error message (https://dydra.com/metreeca/test/issue-57.html)

lisp commented 5 years ago

for the record,

lisp commented 5 years ago

the '=' operator should now behave as expected in filters.

knoan commented 5 years ago

Everything in working order. Thanks