Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ class Analyzer(catalog: Catalog,
}

/*
* GROUP BY a, b, c, WITH ROLLUP
* GROUP BY a, b, c WITH ROLLUP
* is equivalent to
* GROUP BY a, b, c GROUPING SETS ( (a, b, c), (a, b), (a), ( )).
* Group Count: N + 1 (N is the number of group expression)
* GROUP BY a, b, c GROUPING SETS ( (a, b, c), (a, b), (a), ( ) ).
* Group Count: N + 1 (N is the number of group expressions)
*
* We need to get all of its subsets for the rule described above, the subset is
* represented as the bit masks.
Expand All @@ -139,12 +139,12 @@ class Analyzer(catalog: Catalog,
}

/*
* GROUP BY a, b, c, WITH CUBE
* GROUP BY a, b, c WITH CUBE
* is equivalent to
* GROUP BY a, b, c GROUPING SETS ( (a, b, c), (a, b), (b, c), (a, c), (a), (b), (c), ( ) ).
* Group Count: 2^N (N is the number of group expression)
* Group Count: 2 ^ N (N is the number of group expressions)
*
* We need to get all of its sub sets for a given GROUPBY expressions, the subset is
* We need to get all of its subsets for a given GROUPBY expression, the subsets are
* represented as the bit masks.
*/
def bitmasks(c: Cube): Seq[Int] = {
Expand Down