You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tw...@apache.org on 2018/07/24 12:48:12 UTC

[2/2] flink git commit: [FLINK-9296] [table] Add documentation for DISTINCT aggregates

[FLINK-9296] [table] Add documentation for DISTINCT aggregates


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/365d9c14
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/365d9c14
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/365d9c14

Branch: refs/heads/master
Commit: 365d9c141cce1f792c3bfd8fa9a9bf3ebf0c1cde
Parents: 9f181a4
Author: Timo Walther <tw...@apache.org>
Authored: Tue Jul 24 14:38:39 2018 +0200
Committer: Timo Walther <tw...@apache.org>
Committed: Tue Jul 24 14:41:35 2018 +0200

----------------------------------------------------------------------
 docs/dev/table/sql.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/365d9c14/docs/dev/table/sql.md
----------------------------------------------------------------------
diff --git a/docs/dev/table/sql.md b/docs/dev/table/sql.md
index b968c43..5b83e9d 100644
--- a/docs/dev/table/sql.md
+++ b/docs/dev/table/sql.md
@@ -2222,7 +2222,7 @@ COUNT(value [, value]* )
 {% endhighlight %}
       </td>
       <td>
-        <p>Returns the number of input rows for which <i>value</i> is not null.</p>
+        <p>Returns the number of input rows for which <i>value</i> is not null. Use <code>COUNT(DISTINCT value)</code> for the number of unique values in the column or expression.</p>
       </td>
     </tr>
 
@@ -2255,7 +2255,7 @@ SUM(numeric)
 {% endhighlight %}
       </td>
       <td>
-        <p>Returns the sum of <i>numeric</i> across all input values.</p>
+        <p>Returns the sum of <i>numeric</i> across all input values. Use <code>SUM(DISTINCT value)</code> for the sum of unique values in the column or expression.</p>
       </td>
     </tr>