You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Claus Stadler (Jira)" <ji...@apache.org> on 2020/02/20 13:08:00 UTC

[jira] [Created] (JENA-1844) OpAsQuery: ORDER BY causes loss of Extend/Bind

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)