After ROLLUP for Databricks SQL last week, today comes GROUPING SETS.
As the documentation notes, ROLLUP is just syntactic sugar for a specific GROUPING SETS expression.
GROUPING SETS allow for fine granular control over aggregation levels of GROUP BY columns.
This is perfect for multi-dimensional analysis without redundant queries.
