JingGe commented on code in PR #23796:
URL: https://github.com/apache/flink/pull/23796#discussion_r1404714357


##########
docs/content.zh/docs/dev/table/functions/udfs.md:
##########
@@ -1282,7 +1282,7 @@ public static class WeightedAvg extends 
AggregateFunction<Long, WeightedAvgAccum
 
 // 注册函数
 StreamTableEnvironment tEnv = ...
-tEnv.registerFunction("wAvg", new WeightedAvg());
+tEnv.createTemporarySystemFunction("wAvg", new WeightedAvg());

Review Comment:
   ```suggestion
   tEnv.createTemporarySystemFunction("wAvg", WeightedAvg.class);
   ```
   
   Reference: 
https://github.com/apache/flink/blob/9d92104f7554a46eeaabf8622ae6670555eb2ad4/docs/content/docs/dev/table/functions/udfs.md?plain=1#L1090



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to