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 factorial scalar function #300

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

gforsyth
Copy link
Member

Adds a scalar function definition for factorial(n)

I've opted to only support i32 and i64.

@gforsyth gforsyth force-pushed the gil/factorial branch 2 times, most recently from 84e7f6a to a2675d0 Compare August 24, 2022 17:39
jvanstraten
jvanstraten previously approved these changes Aug 24, 2022
Copy link
Contributor

@jvanstraten jvanstraten left a comment

Choose a reason for hiding this comment

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

LGTM

Negative inputs will raise an error.
impls:
- args:
- options: [ SILENT, SATURATE, ERROR ]
Copy link
Member

Choose a reason for hiding this comment

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

Should we specify the name for the options here?
- name: overflow

Copy link
Member Author

Choose a reason for hiding this comment

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

yes! nice catch.

@jvanstraten jvanstraten merged commit a4d6f35 into substrait-io:main Sep 2, 2022
@gforsyth gforsyth deleted the gil/factorial branch September 2, 2022 13:45
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