You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "German Schiavon Matteo (Jira)" <ji...@apache.org> on 2019/09/09 08:21:00 UTC

[jira] [Updated] (SPARK-29020) Unifying behaviour between array_sort and sort_array

     [ https://issues.apache.org/jira/browse/SPARK-29020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

German Schiavon Matteo updated SPARK-29020:
-------------------------------------------
    Description: 
I've noticed that there are two functions to sort arrays *sort_array* and *array_sort*.

*sort_array* is from 1.5.0 and it has the possibility of ordering both ascending and descending 

*array_sort* is from 2.4.0 and it only has the possibility of ordering in ascending.

Basically I just added the possibility of ordering either ascending or descending using *array_sort*. 

I think it would be good to have unified behaviours. 

 

This is the link to the [PR|[https://github.com/apache/spark/pull/25728]]

 

  was:
I've noticed that there are two functions to sort arrays *sort_array* and *array_sort*.

*sort_array* is from 1.5.0 and it has the possibility of ordering both ascending and descending 

*array_sort* is from 2.4.0 and it only has the possibility of ordering in ascending.

Basically I just added the possibility of ordering either ascending or descending using *array_sort*. 

I think it would be good to have unified behaviours. 

 


> Unifying behaviour between array_sort and sort_array
> ----------------------------------------------------
>
>                 Key: SPARK-29020
>                 URL: https://issues.apache.org/jira/browse/SPARK-29020
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0, 2.4.4
>            Reporter: German Schiavon Matteo
>            Priority: Major
>              Labels: functions, sql
>
> I've noticed that there are two functions to sort arrays *sort_array* and *array_sort*.
> *sort_array* is from 1.5.0 and it has the possibility of ordering both ascending and descending 
> *array_sort* is from 2.4.0 and it only has the possibility of ordering in ascending.
> Basically I just added the possibility of ordering either ascending or descending using *array_sort*. 
> I think it would be good to have unified behaviours. 
>  
> This is the link to the [PR|[https://github.com/apache/spark/pull/25728]]
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org