Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Jena 3.13.1
-
None
Description
TransformOrderByDistinctApplication is missing the chance to rewrite the form:
SELECT DISTINCT * { ...} ORDER BY ...
which is
(distinct (order ...
and could be
(order ... (distinct
TransformOrderByDistinctApplication does already rewrite when there is a projection.
SELECT DISTINCT ?x { ...} ORDER BY ?x
(order (?x) (distinct (project (?x)