[Bug 8247] New: [XQTS] A number of tests should use stable order by.

View: New views
1 Messages — Rating Filter:   Alert me  

[Bug 8247] New: [XQTS] A number of tests should use stable order by.

by Bugzilla from bugzilla@wiggum.w3.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://www.w3.org/Bugs/Public/show_bug.cgi?id=8247

           Summary: [XQTS] A number of tests should use stable order by.
           Product: XML Query Test Suite
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@...
        ReportedBy: oliver@...
         QAContact: public-qt-comments@...


K2-OrderbyExprWithout-22 contains the following query:

for $i in (1, 3, 2)
let $c := 3
order by ()
return $i

The expected results are "1 3 2" or "1 2 3", however any permutation should be
acceptable.

Indeed in our implementation, when running with optimizations switched off we
perform a quicksort on the input tuples and happen to return the result "2 3
1".

It is probably easiest to modify this test with a "stable order by", rather
than adding the other 4 permutations.


There are several tests that happen to return the wrong result in our
implementation (with optimization disabled) for this reason:

K2-OrderbyExprWithout-22
K2-OrderbyExprWithout-37
K2-OrderbyExprWithout-38


--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.