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_r390392664
##########
File path: docs/sql-ref-syntax-qry-select-groupby.md
##########
@@ -9,33 +9,33 @@ license: |
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---
-The <code>GROUP BY</code> clause is used to group the rows based on a set of
specified grouping expressions and compute aggregations on
-the group of rows based on one or more specified aggregate functions. Spark
also supports advanced aggregations to do multiple
+The <code>GROUP BY</code> clause is used to group the rows based on a set of
specified grouping expressions and compute aggregations on
+the group of rows based on one or more specified aggregate functions. Spark
also supports advanced aggregations to do multiple
aggregations for the same input record set via `GROUPING SETS`, `CUBE`,
`ROLLUP` clauses.
### Syntax
{% highlight sql %}
GROUP BY [ GROUPING SETS grouping_sets ] group_expression [ , group_expression
[ , ... ] ]
- [ ( WITH ROLLUP | WITH CUBE | GROUPING SETS grouping_sets ) ) ]
+ [ ( WITH ROLLUP | WITH CUBE | GROUPING SETS grouping_sets ) ]
Review comment:
remove the extra `)`
----------------------------------------------------------------
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]