W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2009

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

From: <bugzilla@wiggum.w3.org>
Date: Mon, 09 Nov 2009 12:00:54 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-8247-523@http.www.w3.org/Bugs/Public/>
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@us.ibm.com
        ReportedBy: oliver@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


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.
Received on Monday, 9 November 2009 12:00:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:41 UTC