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

Constant group by keys should handle ARRAY[], MAP() etc that are constants #24556

Open
kaikalur opened this issue Feb 13, 2025 · 0 comments
Open

Comments

@kaikalur
Copy link
Contributor

kaikalur commented Feb 13, 2025

SELECT count(1), orderdate, array[] from orders group by 2,3

does still a group by both the keys in the plan. It should hoist that ARRAY[] as well. Basically instead of ConstantExpression, it should use the RowExpressionInterpreter to eval const in the PullConstantsAboveGroupBy optimizer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 Unprioritized
Development

No branches or pull requests

1 participant