hanyuzheng7 opened a new pull request, #23149: URL: https://github.com/apache/flink/pull/23149
## What is the purpose of the change This is an implementation of ARRAY_MAX ## Brief change log The array_max() function get the maximum element from input array. The result matches the type of the elements. NULL elements are skipped. If array is empty, or contains only NULL elements, NULL is returned. Arguments array: Any ARRAY with elements for which order is supported. Syntax array_max(array) Returns The result matches the type of the elements. NULL elements are skipped. If array is empty, or contains only NULL elements, NULL is returned. Examples SQL ``` > SELECT array_max(array(1, 20, NULL, 3)); 20 Fink SQL-> select array_max(array[1, 20, null, 3]) 20 ``` See also spark https://spark.apache.org/docs/latest/api/sql/index.html#array_max presto https://prestodb.io/docs/current/functions/array.html ## Verifying this change This change added tests in CollectionFunctionsITCase. ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (yes / no) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / no) - The serializers: (yes / no / don't know) - The runtime per-record code paths (performance sensitive): (yes / no / don't know) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know) - The S3 file system connector: (yes / no / don't know) ## Documentation - Does this pull request introduce a new feature? (yes / no) - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented) -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org