Skip to content

[doc](function) Document ARRAY NULL ordering for min max - #4121

Open
Mryange wants to merge 2 commits into
apache:masterfrom
Mryange:doc-array-minmax-null-order
Open

[doc](function) Document ARRAY NULL ordering for min max#4121
Mryange wants to merge 2 commits into
apache:masterfrom
Mryange:doc-array-minmax-null-order

Conversation

@Mryange

@Mryange Mryange commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: N/A

Problem Summary: The MIN and MAX documentation incorrectly described NULL array elements as the smallest values, while Doris compares ARRAY values lexicographically with NULL elements greater than non-NULL elements. MIN_BY and MAX_BY accepted ARRAY ordering expressions without documenting this behavior. This update documents the implemented ordering and distinguishes a NULL array value, which is ignored as a NULL aggregate input, from NULL elements inside an ARRAY.

Release note

None

Check List (For Author)

  • Test: git diff --check; documentation governance lint could not run because the checkout lacks the gray-matter dependency and yarn is unavailable.
  • Behavior changed: No
  • Does this need documentation: No

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.

1 participant