Andy Seaborne created JENA-1774:
-----------------------------------

             Summary: Optimize DISTINCT-ORDERBY
                 Key: JENA-1774
                 URL: https://issues.apache.org/jira/browse/JENA-1774
             Project: Apache Jena
          Issue Type: Improvement
          Components: ARQ
    Affects Versions: Jena 3.13.1
            Reporter: Andy Seaborne
            Assignee: Andy Seaborne
             Fix For: Jena 3.14.0


{{TransformOrderByDistinctApplication}} is missing the chance to rewrite the 
form:

{noformat}
SELECT DISTINCT * { ...} ORDER BY ...
{noformat}
which is
{noformat}
    (distinct
        (order ...
{noformat}
and could be
{noformat}
    (order ...
        (distinct
{noformat}

{{TransformOrderByDistinctApplication}} does already rewrite when there is a 
projection.


{noformat}
SELECT DISTINCT ?x { ...} ORDER BY ?x
{noformat}

{noformat}
    (order (?x)
        (distinct
            (project (?x)
{noformat}




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

Reply via email to