Skip to content

branch-2.1: [feature](group by)Support group by with order. (#53037)#53840

Merged
yiguolei merged 1 commit intoapache:branch-2.1from
Jibing-Li:order2.1
Jul 25, 2025
Merged

branch-2.1: [feature](group by)Support group by with order. (#53037)#53840
yiguolei merged 1 commit intoapache:branch-2.1from
Jibing-Li:order2.1

Conversation

@Jibing-Li
Copy link
Contributor

backport: #53037

Support MariaDB syntax:
```
select a, sum(b) from tbl group by a [ASC | DESC];
```

We have use using looker BI to connect Doris as Mariadb, the BI may
generate SQLs like above, we should support his syntax to compatible
with looker BI.

See:
https://mariadb.com/docs/server/reference/sql-statements/data-manipulation/selecting-data/group-by#with-rollup
@Thearas
Copy link
Contributor

Thearas commented Jul 24, 2025

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?

@Jibing-Li Jibing-Li marked this pull request as ready for review July 24, 2025 09:06
@Jibing-Li Jibing-Li requested a review from yiguolei as a code owner July 24, 2025 09:06
@Jibing-Li
Copy link
Contributor Author

run buildall

@Jibing-Li
Copy link
Contributor Author

run feut

1 similar comment
@Jibing-Li
Copy link
Contributor Author

run feut

@yiguolei yiguolei merged commit c1fa17a into apache:branch-2.1 Jul 25, 2025
21 checks passed
@Jibing-Li Jibing-Li deleted the order2.1 branch July 25, 2025 06:38
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.

3 participants

Comments