[ 
https://issues.apache.org/jira/browse/FLINK-32257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17738632#comment-17738632
 ] 

Sergey Nuyanzin commented on FLINK-32257:
-----------------------------------------

[~hanyuzheng], [~dwysakowicz]
I'm really sorry however we had to revert this change since it brings a blocker 
issue with {{ArrayElementOutputTypeStrategyTest}}
which is constantly failing even locally like
{noformat}
[ERROR] Failures: 
[ERROR]   
ArrayElementOutputTypeStrategyTest>TypeStrategiesTestBase.testTypeStrategy:58 
expected: "INT NOT NULL (AtomicDataType@26e4eacd)"
 but was: "INT NOT NULL (AtomicDataType@1716b369)"
[ERROR]   
ArrayElementOutputTypeStrategyTest>TypeStrategiesTestBase.testTypeStrategy:58 
expected: "INT (AtomicDataType@18ab74e7)"
 but was: "INT (AtomicDataType@f0704a2)"
{noformat}
and ci mirror
https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=50669&view=logs&j=0c940707-2659-5648-cbe6-a1ad63045f0a&t=075c2716-8010-5565-fe08-3c4bb45824a4&l=8884

> Add ARRAY_MAX support in SQL & Table API
> ----------------------------------------
>
>                 Key: FLINK-32257
>                 URL: https://issues.apache.org/jira/browse/FLINK-32257
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Planner
>    Affects Versions: 1.18.0
>            Reporter: Bonnie Varghese
>            Assignee: Hanyu Zheng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.18.0
>
>
> This is an implementation of ARRAY_MAX
> The array_max() function concatenates 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.
>  
> Syntax
> array_max(array)
> Arguments
> array: Any ARRAY with elements for which order is supported.
>  
> 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
>  
> {code:java}
> // Fink SQL-> select array_max(array[1, 20, null, 3])
> 20{code}
>  
> See also
> spark 
> [https://spark.apache.org/docs/latest/api/sql/index.html#array_max|https://spark.apache.org/docs/latest/api/sql/index.html#array_min]
> presto [https://prestodb.io/docs/current/functions/array.html]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to