You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/03/25 07:27:41 UTC

[GitHub] [spark] cloud-fan commented on a change in pull request #30212: [SPARK-33308][SQL] Refactor current grouping analytics

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



##########
File path: docs/sql-ref-syntax-qry-select-groupby.md
##########
@@ -42,6 +42,21 @@ aggregate_name ( [ DISTINCT ] expression [ , ... ] ) [ FILTER ( WHERE boolean_ex
 
 ### Parameters
 
+* **grouping_expression**
+
+    Specifies the criteria based on which the rows are grouped together. The grouping of rows is performed based on
+    result values of the grouping expressions. A grouping expression may be a column alias, a column position
+    or an expression.

Review comment:
       not relate to this PR, but we can give some examples to make it easy to understand.
   ```
   A grouping expression may be a column alias like `GROUP BY a`, a column position
   like `GROUP BY 0`, or an expression like `GROUP BY a + b`.
   ```




-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org