Skip to content

[SPARK-48275][SQL] Improve array_sort default comparator documentation#55164

Open
maoli67660 wants to merge 1 commit intoapache:masterfrom
maoli67660:SPARK-48275
Open

[SPARK-48275][SQL] Improve array_sort default comparator documentation#55164
maoli67660 wants to merge 1 commit intoapache:masterfrom
maoli67660:SPARK-48275

Conversation

@maoli67660
Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants