W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2011

[Bug 15044] [XQuery30] group by variables with associated expressions

From: <bugzilla@jessica.w3.org>
Date: Tue, 06 Dec 2011 16:19:24 +0000
To: public-qt-comments@w3.org
Message-Id: <E1RXxjo-0002q0-0L@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15044

--- Comment #1 from Jonathan Robie <jonathan.robie@gmail.com> 2011-12-06 16:19:23 UTC ---
I believe the description is correct in the spec, but the example is wrong.

So I would keep this definition:

<quote>
[Definition: The atomized value of a grouping variable is called a grouping
key.] For each pre-grouping tuple, the grouping keys are computed by evaluating
the expression in the GroupingSpec and atomizing the result. If the
GroupingSpec does not contain an ExprSingle, an implicit expression is created,
consisting of a variable reference with the same name as the grouping variable.
</quote>

And replace my example with this excerpt from the original proposal:

<quote>
For example, the clause

group by $g1, $g2 := $expr1, $g3 := $expr2 collation "Spanish"

is semantically equivalent to the following sequence of clauses:

let $g2 := $expr1
let $g3 := $expr2
group by $g1, $g2, $g3 collation "Spanish"
</quote>

-- 
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 Tuesday, 6 December 2011 16:19:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:37 UTC