Skip to content

Conversation

@nielspardon
Copy link
Member

fixes #527

  • adds the int32 grouping set index to Aggregate.deriveRecordType()
  • adds Calcite mappings to isthmus which maps a GROUP_ID() aggregate function call mapping for the grouping set index since it has the same semantic as the Substrait grouping set index
  • ensures remap removes the grouping set index field if it there is no GROUP_ID() function call in the Calcite plan

Signed-off-by: Niels Pardon <par@zurich.ibm.com>
Copy link
Contributor

@bestbeforetoday bestbeforetoday left a comment

Choose a reason for hiding this comment

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

Generally this looks great with clearly laid out code. Just a few very minor suggestions to improve the implementation. See in-line comments.

nielspardon and others added 3 commits October 23, 2025 16:31
Co-authored-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
Signed-off-by: Niels Pardon <par@zurich.ibm.com>
Signed-off-by: Niels Pardon <par@zurich.ibm.com>
Copy link
Contributor

@bestbeforetoday bestbeforetoday left a comment

Choose a reason for hiding this comment

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

👍

@bestbeforetoday bestbeforetoday merged commit a00a811 into substrait-io:main Oct 23, 2025
12 checks passed
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.

Add support for grouping set index in Aggregate

2 participants