[ https://issues.apache.org/jira/browse/JENA-1877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17074651#comment-17074651 ]
Jeremy Coulon edited comment on JENA-1877 at 4/3/20, 3:19 PM: -------------------------------------------------------------- I am not sure that I was perfectly clear. The real symptoms in my case is that non-optimized query returns (wrong!): {noformat} ------------------------------- | s1 | s2 | b1 | b2 | =============================== | "BAZ" | "BAZ" | _:b0 | _:b1 | | "BAZ" | "foo" | _:b2 | _:b3 | | "foo" | "BAZ" | _:b4 | _:b5 | | "foo" | "foo" | _:b6 | _:b7 | -------------------------------{noformat} while optimized query returns (correct!): {noformat} ------------------------------- | s1 | s2 | b1 | b2 | =============================== | "foo" | "BAZ" | _:b0 | _:b1 | | "foo" | "foo" | _:b2 | _:b2 | | "BAZ" | "BAZ" | _:b3 | _:b3 | | "BAZ" | "foo" | _:b4 | _:b5 | -------------------------------{noformat} was (Author: jeremy.coulon): I am not sure that I was perfectly clear. The real symptoms in my case is that non-optimized query returns: > Wrong results for non-optimized query > ------------------------------------- > > Key: JENA-1877 > URL: https://issues.apache.org/jira/browse/JENA-1877 > Project: Apache Jena > Issue Type: Bug > Components: ARQ > Affects Versions: Jena 3.14.0 > Reporter: Jeremy Coulon > Priority: Major > Attachments: bnode01.rq, data.ttl > > > I noticed that the attached query gives correct results with: > {noformat} > ./bin/arq --data=data.ttl --query=bnode01.rq --explain --optimize=on > {noformat} > while it gives wrong results with: > {noformat} > ./bin/arq --data=data.ttl --query=bnode01.rq --explain > --optimize=off{noformat} > Without optimization, ARQ algebra has 2 different 'extend' op with > 'bnode(?s)' expression. > With optimization, ARQ algebra merges these ops into a single op 'extend'. > > I tried debugging and I think that 'E_BNode.evalSpecial()' takes the same > 'binding' object for each call in optimized mode but different 'binding' > objects for non-optimized mode. This function relies on reference-equality. > > [^data.ttl] > [^bnode01.rq] -- This message was sent by Atlassian Jira (v8.3.4#803005)