spark icon indicating copy to clipboard operation
spark copied to clipboard

[SPARK-48275][SQL][DOCS] Improve array_sort default comparator documentation

Open maoli67660 opened this issue 7 months ago • 2 comments

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

maoli67660 avatar Apr 02 '26 13:04 maoli67660

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 avatar Apr 08 '26 21:04 maoli67660

@maoli67660 You can simply re-trigger CI by empty commit:

git commit -am 'Trigger build' --allow-empty

MaxGekk avatar Jun 22 '26 13:06 MaxGekk

+1, LGTM. Merging to master/4.x. Thank you, @maoli67660.

MaxGekk avatar Jun 30 '26 11:06 MaxGekk

@maoli67660 Congratulations with your first contribution to Apache Spark!

MaxGekk avatar Jun 30 '26 11:06 MaxGekk