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


##########
docs/data/sql_functions.yml:
##########
@@ -1451,13 +1451,69 @@ variant:
   - sql: variant '[' INT ']'
     table: VARIANT.at(INT)
     description: |
-      If the VARIANT is an ARRAY value, returns a VARIANT whose value is the 
element at
-      the specified index. The index starts from 1, If the index is out of 
range, it returns NULL.
+      If the VARIANT is an array, returns a VARIANT holding the element at the 
index. The index
+      starts at 1. If the index is out of range, returns NULL. If the VARIANT 
is not an array, an
+      error is thrown. To return NULL instead, use `VARIANT_GET`.
   - sql: variant '[' STRING ']'
     table: VARIANT.at(STRING)
     description: |
-      If the VARIANT is a MAP value that has an element with this key, a 
VARIANT holding
-      the associated value is returned. Otherwise, NULL is returned.
+      If the VARIANT is an object that has a field with this key, returns a 
VARIANT holding the
+      value of the field. If the object has no such field, returns NULL. If 
the VARIANT is not an
+      object, an error is thrown. To return NULL instead, use `VARIANT_GET`.
+  - sql: VARIANT_GET(variant, path[, type])

Review Comment:
   done



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