You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/04/12 01:05:38 UTC

[groovy] branch master updated: Refine the GINQ doco

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 00a635fe01 Refine the GINQ doco
00a635fe01 is described below

commit 00a635fe0100e3515806e3bc73da72455585b90f
Author: Daniel Sun <su...@apache.org>
AuthorDate: Tue Apr 12 09:05:16 2022 +0800

    Refine the GINQ doco
---
 subprojects/groovy-ginq/src/spec/doc/ginq-userguide.adoc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/subprojects/groovy-ginq/src/spec/doc/ginq-userguide.adoc b/subprojects/groovy-ginq/src/spec/doc/ginq-userguide.adoc
index 6138cc9519..9526ba2f63 100644
--- a/subprojects/groovy-ginq/src/spec/doc/ginq-userguide.adoc
+++ b/subprojects/groovy-ginq/src/spec/doc/ginq-userguide.adoc
@@ -299,7 +299,8 @@ Only binary expressions(`==`, `&&`) are allowed in the `on` clause of hash join
 
 
 ==== Grouping
-`groupby` is equivalent to SQL's `GROUP BY`, and `having` is equivalent to SQL's `HAVING`
+`groupby` is equivalent to SQL's `GROUP BY`, and `having` is equivalent to SQL's `HAVING`.
+Each field in any nonaggregate expression in the `select` clause **must** be included in the `groupby` clause.
 [source, sql]
 ----
 include::../test/org/apache/groovy/ginq/GinqTest.groovy[tags=ginq_grouping_01,indent=0]