Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-29020

Unifying behaviour between array_sort and sort_array

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    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]

       

      Attachments

        Activity

          People

            gschiavon German Schiavon Matteo
            gschiavon German Schiavon Matteo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: