W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2012

[Bug 15539] New: [QT3] alternate result for group-010

From: <bugzilla@jessica.w3.org>
Date: Thu, 12 Jan 2012 22:23:54 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-15539-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15539

           Summary: [QT3] alternate result for group-010
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
        AssignedTo: benjie.nguyen@gmail.com
        ReportedBy: andrew.eisenberg@us.ibm.com
         QAContact: public-qt-comments@w3.org
                CC: mike@saxonica.com


The query in group-010 is:

for $x in //employee 
let $key := if ($x/@gender='male') then number('NaN') else 42 
group by $key 
order by $key 
return <group key="{$key}" count="{count($x)}"/> 


I believe that two results should be accepted, one with the NaN group before
the non-NaN group, and one with the non-NaN group before the NaN group.

The order by by clause is a no-op here, because an implementation may chose
either empty-least or empty-greatest for the default order for empty sequences.
This choice determines whether the NaN group appears first or last.

-- 
Configure bugmail: https://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 Thursday, 12 January 2012 22:25:59 UTC

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