ueshin commented on issue #25728: [SPARK-29020][SQL] Improving array_sort 
behaviour
URL: https://github.com/apache/spark/pull/25728#issuecomment-530031779
 
 
   As the original motivation, we might want to support a comparator function 
rather than an ascending flag to follow Presto. I think the null ordering is 
also following Presto, btw.
   
   How about adding the comparator function here instead? Then we can make 
`sort_array` as `Unvaluable` and replace it to `array_sort` with appropriate 
comparator in Analyzer in the following PRs. I'm not sure we should deprecate 
`sort_array` in that case, though.
   
   WDYT?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to