Home › Glossary › CUBE

CUBE

A Spark SQL GROUP BY extension that returns totals for each possible combination of the named columns, which is 2^n grouping sets once the overall total is counted. ROLLUP, by contrast, returns only the hierarchy-based subset.

Read more: Microsoft Learn

In the Ultra Transcenders books

DP-700

Each book explains CUBE in context, with comparison tables and the common traps.

Terms in this definition

See CUBE in the full glossary