Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-667

DISTINCT ORDER BY does not preserve order

    XMLWordPrintable

    Details

      Description

      Given:

      @prefix ex: <http://example.org/>.
      
      ex:Jim ex:hasName "Jim".
      ex:Michael ex:hasName "Michael".
      ex:Dwight ex:hasName "Dwight".
      

      and the query:

      PREFIX ex: <http://example.org/>
      
      SELECT DISTINCT ?sub WHERE {
        ?sub ex:hasName ?name.
      } order by DESC(?name)
      

      The projected solutions are incorrect if the ORDER BY attribute is not also projected.

        Attachments

          Activity

            People

            Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: