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: propagate sorts in aggregate function invocation proto->rel #313

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

bvolpato
Copy link
Member

When consuming a Substrait proto plan that contains sort within aggregate calls, the SortFields were being dropped in the process.

This is what I mean by sort within aggregates:

SELECT ARRAY_AGG(genre ORDER BY genre) FROM book

So this is a simple addition + test case change that closes that gap.

Copy link
Contributor

@Blizzara Blizzara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @bvolpato!

@Blizzara Blizzara merged commit 75ebac2 into substrait-io:main Oct 25, 2024
13 checks passed
@bvolpato bvolpato deleted the aggr-sort-fields branch October 25, 2024 15:53
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.

2 participants