Skip to content

Commit d1efdf6

Browse files
committed
renames variables to avoid confusion that led to errata-query-11; as motivated in #94
1 parent ae554d5 commit d1efdf6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8769,9 +8769,9 @@ <h5>Grouping and Aggregation</h5>
87698769
Let E := [], a list of pairs of the form (variable, expression)
87708770

87718771
If Q contains GROUP BY exprlist
8772-
Let G := Group(exprlist, ToList(P))
8772+
Let Grp := Group(exprlist, ToList(P))
87738773
Else If Q contains an aggregate in SELECT, HAVING, ORDER BY
8774-
Let G := Group((1), ToList(P))
8774+
Let Grp := Group((1), ToList(P))
87758775
Else
87768776
skip the rest of the aggregate step
87778777
End
@@ -8784,14 +8784,14 @@ <h5>Grouping and Aggregation</h5>
87848784
End
87858785
For each aggregate R(args ; scalarvals) now in X
87868786
# note scalarvals may be omitted, then it's equivalent to the empty set
8787-
A<span><sub>i</sub></span> := Aggregation(args, R, scalarvals, G)
8787+
A<span><sub>i</sub></span> := Aggregation(args, R, scalarvals, Grp)
87888788
Replace R(...) with agg<span><sub>i</sub></span> in Q
87898789
i := i + 1
87908790
End
87918791
End
87928792

87938793
For each variable V appearing outside of an aggregate
8794-
A<span><sub>i</sub></span> := Aggregation(V, Sample, {}, G)
8794+
A<span><sub>i</sub></span> := Aggregation(V, Sample, {}, Grp)
87958795
E := E append (V, agg<span><sub>i</sub></span>)
87968796
i := i + 1
87978797
End
@@ -9763,8 +9763,8 @@ <h3>Evaluation Semantics</h3>
97639763
<div id="defn_evalAggregation">
97649764
<b>Definition: Evaluation of Aggregation</b>
97659765
</div>
9766-
<p>eval(D(G), Aggregation(exprlist, func, scalarvals, P)) = Aggregation(exprlist, func,
9767-
scalarvals, eval(D(G), P))</p>
9766+
<p>eval(D(G), Aggregation(exprlist, func, scalarvals, Grp)) = Aggregation(exprlist, func,
9767+
scalarvals, eval(D(G), Grp))</p>
97689768
</div>
97699769
<div class="defn">
97709770
<div id="defn_evalAggregateJoin">

0 commit comments

Comments
 (0)