raminqaf commented on code in PR #28456:
URL: https://github.com/apache/flink/pull/28456#discussion_r3416210462


##########
docs/data/sql_functions.yml:
##########
@@ -1611,6 +1611,14 @@ aggregate:
       `(NUMERIC: INTEGER_NUMERIC, FLOAT, DOUBLE, DECIMAL)`
       
       Returns a `DOUBLE` if percentage is numeric, or an `ARRAY<DOUBLE>` if 
percentage is an array. `NULL` if percentage is an empty array.
+  - sql: SINGLE_VALUE(expression)
+    description: |
+      Returns a single value of the expression within a group.

Review Comment:
   A tiny example always helps to understand the function better.



##########
docs/data/sql_functions.yml:
##########
@@ -1611,6 +1611,14 @@ aggregate:
       `(NUMERIC: INTEGER_NUMERIC, FLOAT, DOUBLE, DECIMAL)`
       
       Returns a `DOUBLE` if percentage is numeric, or an `ARRAY<DOUBLE>` if 
percentage is an array. `NULL` if percentage is an empty array.
+  - sql: SINGLE_VALUE(expression)

Review Comment:
   Thanks for adding this. Could you please mirror this into the Chinese docs 
too? No need to translate them



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