Skip to content

branch-2.1: [improvement](nereids)Support GROUP BY ... WITH ROLLUP syntax #51948 - #51978

Merged
yiguolei merged 1 commit into
branch-2.1from
auto-pick-51948-branch-2.1
Jun 25, 2025
Merged

branch-2.1: [improvement](nereids)Support GROUP BY ... WITH ROLLUP syntax #51948#51978
yiguolei merged 1 commit into
branch-2.1from
auto-pick-51948-branch-2.1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Cherry-picked from #51948

### What problem does this PR solve?
Support GROUP BY ... WITH ROLLUP syntax
mysql> SELECT year, month, SUM(amount) AS total_amount FROM sales GROUP BY year, month WITH ROLLUP order by year desc, month desc;
+------+-------+--------------+
| year | month | total_amount |
+------+-------+--------------+
| 2024 | 1 | 3400.00 |
| 2024 | NULL | 3400.00 |
| 2023 | 2 | 4000.00 |
| 2023 | 1 | 3000.00 |
| 2023 | NULL | 7000.00 |
| NULL | NULL | 10400.00 |
+------+-------+--------------+
6 rows in set (0.02 sec)
@github-actions
github-actionsBot requested a review from yiguolei as a code ownerJune 19, 2025 12:23
@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@hello-stephen

Copy link
Copy Markdown
Contributor

run buildall

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Jun 25, 2025
@github-actions

Copy link
Copy Markdown
ContributorAuthor

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

@github-actions

Copy link
Copy Markdown
ContributorAuthor

PR approved by anyone and no changes requested.

@yiguolei
yiguolei merged commit b3588b0 into branch-2.1Jun 25, 2025
@github-actions
github-actionsBot deleted the auto-pick-51948-branch-2.1 branch June 25, 2025 01:59
@yiguoleiyiguolei mentioned this pull request Aug 11, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@hello-stephen@yiguolei@dataroaring@Jibing-Li