liuyongvs opened a new pull request, #3236:
URL: https://github.com/apache/calcite/pull/3236

   
[sort_array](https://spark.apache.org/docs/latest/api/sql/index.html#sort_array)
   sort_array(array[, ascendingOrder]) - Sorts the input array in ascending or 
descending order according to the natural ordering of the array elements. Null 
elements will be placed at the beginning of the returned array in ascending 
order or at the end of the returned array in descending order.
   
   NaN is greater than any non-NaN elements for double/float type.  which is 
default behavior, so i don't add into the doc
   Examples:
   
   > SELECT sort_array(array('b', 'd', null, 'c', 'a'), true);
    [null,"a","b","c","d"]
   
   > SELECT sort_array(array('b', 'd', null, 'c', 'a'));
    [null,"a","b","c","d"]


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to