Skip to content

branch-4.1: [fix](agg) Align complex aggregate null ordering #67439 - #68422

Merged
yiguolei merged 1 commit into
branch-4.1from
auto-pick-67439-branch-4.1
Sep 24, 2026
Merged

yiguolei merged 1 commit into
branch-4.1from
auto-pick-67439-branch-4.1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Cherry-picked from #67439

Problem Summary: Complex-type `min`, `max`, `min_by`, and `max_by` used
a NULL ordering direction different from ordinary SQL array comparisons.
This could select inconsistent results for arrays containing NULL
elements. The aggregate comparison direction is aligned with SQL array
ordering, and regression expectations are updated.


apache/doris-website#4121

### Release note

Complex-type aggregate ordering now follows SQL array NULL ordering.

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
@github-actions
github-actions Bot requested a review from yiguolei as a code owner September 23, 2026 04:16
@yiguolei

Copy link
Copy Markdown
Contributor

skip buildall

@github-actions

Copy link
Copy Markdown
Contributor Author

PR approved by anyone and no changes requested.

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

PR approved by at least one committer and no changes requested.

@yiguolei
yiguolei merged commit 8039c3c into branch-4.1 Sep 24, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants