cloud-fan commented on a change in pull request #27866: [SPARK-31110][SQL] 
refine sql doc for SELECT
URL: https://github.com/apache/spark/pull/27866#discussion_r390393573
 
 

 ##########
 File path: docs/sql-ref-syntax-qry-select-groupby.md
 ##########
 @@ -55,25 +55,26 @@ GROUP BY [ GROUPING SETS grouping_sets ] group_expression 
[ , group_expression [
   </dd>
   <dt><code><em>ROLLUP</em></code></dt>
   <dd>
-    Specifies multiple levels of aggregations in a single statement. This 
clause is used to compute aggregations 
-    based on multiple grouping sets. <code>ROLLUP</code> is shorthand for 
<code>GROUPING SETS</code>. For example,
-    GROUP BY warehouse, product  WITH ROLLUP is equivalent to GROUP BY 
<code>warehouse, product</code> GROUPING SETS
-    <code> ((warehouse, product), (warehouse), ())</code>.
+    Specifies multiple levels of aggregations in a single statement. This 
clause is used to compute aggregations
+    based on multiple grouping sets. <code>ROLLUP</code> is a shorthand for 
<code>GROUPING SETS</code>. For example,
+    <code>GROUP BY warehouse, product WITH ROLLUP</code> is equivalent to 
<code>GROUP BY GROUPING SETS
 
 Review comment:
   GROUP BY GROUPING SETS ... is the same as GROUP BY a, b GROUPING SETS but 
shorter.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

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

Reply via email to