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

jark pushed a commit to branch release-1.12
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.12 by this push:
     new b546258  [FLINK-21042][docs] Fix code example in "Aggregate Functions" 
section in Table UDF page
b546258 is described below

commit b546258a75629cc91fb37ae31c167df223eea131
Author: Roc Marshal <[email protected]>
AuthorDate: Thu Jan 21 11:09:32 2021 +0800

    [FLINK-21042][docs] Fix code example in "Aggregate Functions" section in 
Table UDF page
    
    This closes #14702
---
 docs/dev/table/functions/udfs.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/dev/table/functions/udfs.md b/docs/dev/table/functions/udfs.md
index aac2c68..9339728 100644
--- a/docs/dev/table/functions/udfs.md
+++ b/docs/dev/table/functions/udfs.md
@@ -1020,7 +1020,7 @@ env
 
 // call registered function in SQL
 env.sqlQuery(
-  "SELECT myField, WeightedAvg(value, weight) FROM MyTable GROUP BY myField"
+  "SELECT myField, WeightedAvg(`value`, weight) FROM MyTable GROUP BY myField"
 );
 {% endhighlight %}
 </div>
@@ -1096,7 +1096,7 @@ env
 
 // call registered function in SQL
 env.sqlQuery(
-  "SELECT myField, WeightedAvg(value, weight) FROM MyTable GROUP BY myField"
+  "SELECT myField, WeightedAvg(`value`, weight) FROM MyTable GROUP BY myField"
 )
 {% endhighlight %}
 </div>

Reply via email to