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


##########
docs/data/sql_functions.yml:
##########
@@ -1611,6 +1611,16 @@ 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.
+
+      If the group contains more than one distinct value, an exception is 
thrown at runtime.
+
+      E.g., SELECT SINGLE_VALUE(id) FROM T.

Review Comment:
   Thanks for the explanation and the clear example! I've updated the 
documentation to include the correct example with the `GROUP BY` clause. I 
applied this fix to both the English and Chinese documentation files.



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