cloud-fan commented on a change in pull request #32201:
URL: https://github.com/apache/spark/pull/32201#discussion_r617714404



##########
File path: docs/sql-ref-syntax-qry-select-groupby.md
##########
@@ -113,7 +116,18 @@ aggregate_name ( [ DISTINCT ] expression [ , ... ] ) [ 
FILTER ( WHERE boolean_ex
         (warehouse, location),
         (warehouse, size),
         (warehouse))`.
- 
+    
+    `GROUP BY warehouse, GROUPING SETS((env), GROUPING SETS((product), ()), 
GROUPING SETS((location, size), (location), (size), ()))`
+    and `GROUP BY warehouse, GROUPING SETS((env), ROLLUP(product), 
CUBE(location, size))` is equivalent to 
+    `GROUP BY  GROUPING SETS(

Review comment:
       It's better to give a simple example like `GROUP BY GROUPING 
SETS(GROUPING SETS(warehouse, product), GROUPING SETS(location, size))`




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to