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

Support complete distinct usage for aggregate expressions #2406

Open
2 of 6 tasks
WinkerDu opened this issue May 2, 2022 · 2 comments
Open
2 of 6 tasks

Support complete distinct usage for aggregate expressions #2406

WinkerDu opened this issue May 2, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@WinkerDu
Copy link
Contributor

WinkerDu commented May 2, 2022

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Here are multiple aggregate expressions have not support distinct usage yet.
Though optimizer SingleDistinctToGroupBy (#1315) supports single distinct usage, there are more SQL scenes have not been covered, like

SELECT AVG(c1), SUM(DISTINCT c2) FROM test

I would like to take effort to work on the following tickets to complete distinct usage for aggregate expressions

Describe the solution you'd like
Adds specific aggregate expression support, like expressions::DistinctSum for sum(distinct)

Describe alternatives you've considered
No.

Additional context
No.

@WinkerDu WinkerDu added the enhancement New feature or request label May 2, 2022
@WinkerDu
Copy link
Contributor Author

WinkerDu commented May 2, 2022

@andygrove @alamb can you please assign this issue to me? Thank you ❤️

@alamb
Copy link
Contributor

alamb commented May 2, 2022

@andygrove @alamb can you please assign this issue to me? Thank you ❤️

Done -- thanks @WinkerDu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants