Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(query): make sort respect index #10458

Merged
merged 3 commits into from
Mar 9, 2023
Merged

Conversation

sundy-li
Copy link
Member

@sundy-li sundy-li commented Mar 9, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Summary about this PR

make sort respect index

MySQL [(none)]> select number  d , max(1-number) c from numbers(4) group by 1  order by 2;
+------+------+
| d    | c    |
+------+------+
|    3 |   -2 |
|    2 |   -1 |
|    1 |    0 |
|    0 |    1 |
+------+------+
4 rows in set (0.044 sec)

Closes #10453

@vercel
Copy link

vercel bot commented Mar 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
databend ⬜️ Ignored (Inspect) Mar 9, 2023 at 3:55AM (UTC)

@sundy-li sundy-li requested a review from xudong963 March 9, 2023 02:04
@mergify mergify bot added the pr-bugfix this PR patches a bug in codebase label Mar 9, 2023
@BohuTANG BohuTANG merged commit 93e1966 into databendlabs:main Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: group by 1 order by 2 desc
3 participants