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

Validate ordinal based grouping expressions during analysis #8247

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

phd3
Copy link
Member

@phd3 phd3 commented Jun 9, 2021

Queries with GROUP BY ordinals mapping to aggregate expressions pass analysis and fail during ScanFilterProject.

Caused by: java.lang.ClassCastException: class io.trino.operator.aggregation.ParametricAggregation cannot be cast to class io.trino.metadata.SqlScalarFunction (io.trino.operator.aggregation.ParametricAggregation and 

(First of the two tests added also succeeds without the change.)

@cla-bot cla-bot bot added the cla-signed label Jun 9, 2021
@phd3 phd3 requested a review from kasiafi June 9, 2021 21:43
@phd3 phd3 force-pushed the ordinal-groupby-validate branch from 68a2716 to 6377c59 Compare June 10, 2021 02:06
@phd3 phd3 force-pushed the ordinal-groupby-validate branch from 6377c59 to 7303bf3 Compare June 10, 2021 02:07
@phd3 phd3 merged commit 41ff64c into trinodb:master Jun 10, 2021
@phd3
Copy link
Member Author

phd3 commented Jun 10, 2021

Merged #8247 into master.

@phd3 phd3 mentioned this pull request Jun 29, 2021
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants