Rows with the same group key go into the same bucket.
same key, same bucket
Show the buckets
The compiler forms 3 buckets and lists their source rows.
groups=3
Grouping examples are tiny finite table transforms; SQL dialects, NULLs, AVG/rounding, planner behavior, indexes, performance, and product behavior are out of scope.
Read the key order
Group keys are sorted with a deterministic canonical key, so the buckets render in a stable order.
canonical group order
Summary
A bucket is just a visible set of source rows sharing a key.