You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2019/10/24 09:20:00 UTC
[jira] [Created] (JENA-1774) Optimize DISTINCT-ORDERBY
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)