Claus Stadler created JENA-1844:
-----------------------------------

             Summary: OpAsQuery: ORDER BY causes loss of Extend/Bind
                 Key: JENA-1844
                 URL: https://issues.apache.org/jira/browse/JENA-1844
             Project: Apache Jena
          Issue Type: Bug
          Components: ARQ
            Reporter: Claus Stadler


Another back-forth conversion issue of syntax/algebra that causes BINDs to get 
lost in the process:
{code:java}
Query expected = QueryFactory.create("SELECT * { ?s ?p ?o BIND(?s AS ?x) } 
ORDER BY ?s");
Query actual = OpAsQuery.asQuery(Algebra.compile(expected));
System.out.println(expected);
System.out.println(actual);
{code}
Output:
{code:java}
expected: SELECT * { ?s ?p ?o BIND(?s AS ?x) } ORDER BY ?s
actual  : SELECT * { ?s ?p ?o } ORDER BY ?s
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to