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

feat: add aggregate function min/max support #219

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

weijietong
Copy link
Contributor

No description provided.

- value: i8
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: i8

Choose a reason for hiding this comment

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

Seems both the intermediate and return type should be i8?, indicating that a nullable i8.

Same applied to other impls.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. BTW do we need to define another function definication that the return type is not nullable ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. BTW do we need to define another function definication that the return type is not nullable ? The specification shows that the functoin signature (which is the key in the yaml file) doesn't include the return type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

description: Min a set of values.
impls:
- args:
- options: [ SILENT, SATURATE, ERROR ]
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see the purpose of multiple overflow behaviors for min. How would min ever overflow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just got the meaning of the options which indicates the behavior of a function overflow. So will remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@weijietong weijietong changed the title [WIP]add aggregate function min/max support add aggregate function min/max support Jun 5, 2022
@jacques-n
Copy link
Contributor

It looks like your commit doesn't match the expected commit pattern. This is a new feature.

@weijietong weijietong changed the title add aggregate function min/max support feat: add aggregate function min/max support Jun 6, 2022
Copy link
Contributor

@jacques-n jacques-n 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 @weijietong !

@jacques-n jacques-n merged commit 48b6b12 into substrait-io:main Jun 7, 2022
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.

3 participants