alan910127 commented on code in PR #14737: URL: https://github.com/apache/datafusion/pull/14737#discussion_r1969021807
########## datafusion/functions-nested/src/sort.rs: ########## @@ -143,6 +168,10 @@ pub fn array_sort_inner(args: &[ArrayRef]) -> Result<ArrayRef> { return exec_err!("array_sort expects one to three arguments"); } + if args.iter().any(|array| array.logical_null_count() > 0) { Review Comment: I think we still need to check for `args[1..]` for null `desc` or `nulls_first`? but to be align with the sort options, I think checking `is_null(0)` should be enough. -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org