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


##########
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:
   Thanks for the suggestion, @raminqaf! I agree that adding an example is very 
helpful for better understanding.
   
   I will add the `SINGLE_VALUE` entry to the Chinese documentation and include 
the following example for the function in both the English and Chinese versions:
   
   ```yaml
     examples: |
       SELECT SINGLE_VALUE(id) FROM T;



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