This is an automated email from the ASF dual-hosted git repository. snuyanzin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit 52dfc295cc95c5aa2e3e1e65812ebaad156466ce Author: Sergey Nuyanzin <snuyan...@gmail.com> AuthorDate: Thu Jun 15 06:53:45 2023 +0200 [hotfix][docs] Add collection functions to chinese doc --- docs/data/sql_functions_zh.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/data/sql_functions_zh.yml b/docs/data/sql_functions_zh.yml index c0e7a1995ef..efb16a2c633 100644 --- a/docs/data/sql_functions_zh.yml +++ b/docs/data/sql_functions_zh.yml @@ -727,6 +727,36 @@ collection: - sql: map ‘[’ value ‘]’ table: MAP.at(ANY) description: 返回 map 中指定 key 对应的值。 + - sql: ARRAY_CONTAINS(haystack, needle) + table: haystack.arrayContains(needle) + description: Returns whether the given element exists in an array. Checking for null elements in the array is supported. If the array itself is null, the function will return null. The given element is cast implicitly to the array's element type if necessary. + - sql: ARRAY_DISTINCT(haystack) + table: haystack.arrayDistinct() + description: Returns an array with unique elements. If the array itself is null, the function will return null. Keeps ordering of elements. + - sql: ARRAY_POSITION(haystack, needle) + table: haystack.arrayPosition(needle) + description: Returns the position of the first occurrence of element in the given array as int. Returns 0 if the given value could not be found in the array. Returns null if either of the arguments are null. And this is not zero based, but 1-based index. The first element in the array has index 1. + - sql: ARRAY_REMOVE(haystack, needle) + table: haystack.arrayRemove(needle) + description: Removes all elements that equal to element from array. If the array itself is null, the function will return null. Keeps ordering of elements. + - sql: ARRAY_REVERSE(haystack) + table: haystack.arrayReverse() + description: Returns an array in reverse order. If the array itself is null, the function will return null. + - sql: ARRAY_UNION(array1, array2) + table: haystack.arrayUnion(array) + description: Returns an array of the elements in the union of array1 and array2, without duplicates. If any of the array is null, the function will return null. + - sql: MAP_KEYS(map) + table: MAP.mapKeys() + description: Returns the keys of the map as array. No order guaranteed. + - sql: MAP_VALUES(map) + table: MAP.mapValues() + description: Returns the values of the map as array. No order guaranteed. + - sql: MAP_ENTRIES(map) + table: MAP.mapEntries() + description: Returns an array of all entries in the given map. No order guaranteed. + - sql: MAP_FROM_ARRAYS(array_of_keys, array_of_values) + table: mapFromArrays(array_of_keys, array_of_values) + description: Returns a map created from an arrays of keys and values. Note that the lengths of two arrays should be the same. json: - sql: IS JSON [ { VALUE | SCALAR | ARRAY | OBJECT } ]