Adding support for ARRAY_SORT_DESC to Presto#18660
Conversation
7e4df46 to
30aa812
Compare
Formatting release notes |
65a38c3 to
1a54204
Compare
highker
left a comment
There was a problem hiding this comment.
The release note is too verbose. We only need one (long) line to explain what it does in English. Also, we need :func: annotation for the function name so it can be linked to the doc you wrote.
presto-main/src/test/java/com/facebook/presto/operator/scalar/sql/TestArraySqlFunctions.java
Outdated
Show resolved
Hide resolved
presto-main/src/test/java/com/facebook/presto/operator/scalar/sql/TestArraySqlFunctions.java
Outdated
Show resolved
Hide resolved
presto-main/src/test/java/com/facebook/presto/operator/scalar/sql/TestArraySqlFunctions.java
Outdated
Show resolved
Hide resolved
|
@bot kick off tests |
dd9fa85 to
a070060
Compare
Done! |
|
Can we merge this PR? |
Adding an UDF for sorting array elements in the descending order. The elements of array must be orderable. Null elements will be placed at the end of the returned array.
array_sort_desc(array(T)) -> array(T)
Test plan
Added unit tests.
Build successfully using the following terminal command
mvn -Dtest=TestArraySqlFunctions install