-
Notifications
You must be signed in to change notification settings - Fork 166
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 i64 variant for exp, ln, log10, log2 and logb functions #628
Conversation
ACTION NEEDED Substrait follows the Conventional Commits The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding these!
The definitions follow a similar pattern as sqrt
, which only defines an i64
variant (alongside fp32
and fp64
).
It might make sense to add variants for i8
, i16
and i32
, but it's an open-question (IMO) about whether these should return fp32
or fp64
. I think the i64
to fp64
make sense generally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question but I think the answer is just "yes".
on_domain_error: | ||
values: [ NAN, "NULL", ERROR ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Domain error here is negative integers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, the domain error will be negative integers/floats
This PR adds
i64
as an argument toexp
,ln
,log10
,log2
andlogb
functions