[SPARK-48275][SQL][DOCS] Improve array_sort default comparator documentation
What changes were proposed in this pull request?
This PR improves the Scaladoc for array_sort by clarifying the behavior of the default comparator, especially for struct elements.
Why are the changes needed?
The current documentation says that array elements must be orderable, but does not explain how the default comparator behaves for structs or why arrays of structs with unorderable fields can fail.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Built the affected module locally with:
./build/mvn -pl sql/api -am -DskipTests package
Was this patch authored or co-authored using generative AI tooling?
Generated-by: ChatGPT GPT-5.4 Thinking
This is a documentation-only change. I checked locally and did not find whitespace or hidden Unicode/control character issues. The failing CI job appears unrelated to this patch.
Could a committer please help rerun the checks?
@maoli67660 You can simply re-trigger CI by empty commit:
git commit -am 'Trigger build' --allow-empty
+1, LGTM. Merging to master/4.x. Thank you, @maoli67660.
@maoli67660 Congratulations with your first contribution to Apache Spark!