snuyanzin commented on code in PR #28970:
URL: https://github.com/apache/flink/pull/28970#discussion_r3853895482
##########
docs/data/sql_functions.yml:
##########
@@ -925,6 +925,22 @@ collection:
- sql: MAP_ENTRIES(map)
table: MAP.mapEntries()
description: Returns an array of all entries in the given map. No order
guaranteed.
+ - sql: MAP_CONTAINS_KEY(map, key)
+ table: MAP.mapContainsKey(key)
+ description: |
+ Returns TRUE if the given key exists in the map, FALSE otherwise.
Returns NULL if the map is
+ NULL. If the search key is NULL, the function returns TRUE when the map
contains a NULL key.
+ The given key is cast implicitly to the map's key type where Flink's
implicit casting rules
+ allow it; otherwise the call fails validation.
+ eg.
Review Comment:
```suggestion
e.g.
```
nit
##########
docs/data/sql_functions_zh.yml:
##########
@@ -1052,6 +1052,22 @@ collection:
- sql: MAP_ENTRIES(map)
table: MAP.mapEntries()
description: 以数组形式返回 map 中的所有 entry,不保证顺序。
+ - sql: MAP_CONTAINS_KEY(map, key)
+ table: MAP.mapContainsKey(key)
+ description: |
+ Returns TRUE if the given key exists in the map, FALSE otherwise.
Returns NULL if the map is
+ NULL. If the search key is NULL, the function returns TRUE when the map
contains a NULL key.
+ The given key is cast implicitly to the map's key type where Flink's
implicit casting rules
+ allow it; otherwise the call fails validation.
+ eg.
Review Comment:
```suggestion
e.g.
```
nit
--
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]