-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-43163: [R] Fix bindings in Math group generics #43162
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
Conversation
…max and fix bindings after support was added for cumsum
|
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format? or In the case of PARQUET issues on JIRA the title also supports: See also: |
|
|
jonkeane
left a comment
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.
Thank you for the contribution! Both the issue and the PR are great, detailed, to the point, and with additional tests.
I'm going to (tentatively) approve this, though will wait for CI to pass before merging — if there's any issue there I might ask for more changes
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 8e5c4e6. There were 5 benchmark results indicating a performance regression:
The full Conbench report has more details. It also includes information about 129 possible false positives for unstable benchmarks that are known to sometimes produce them. |
### Rationale for this change When support was added for `cumsum` in the `Math` group generics it mistakenly mapped `signif`, `expm1`, `log1p`, `cospi`, `sinpi`, `tanpi`, `cosh`, `sinh`, `tanh`, `acosh`, `asinh`, `atanh`, `lgamma`, `gamma`, `digamma`, and `trigamma` to the `cumulative_sum_checked` arrow function. This PR corrects that mistake and well as adds support for `log2`, `log1p`, `cumprod`, `cummax`, and `cummin`. ### What changes are included in this PR? It contains the following changes: 1. `acos`, `asin`, `cos`, `sin`, `tan` now map to the `*_checked` arrow function variants 2. `log2` maps to the `log2_checked` arrow function 3. `log1p` maps to the `log1p_checked` arrow function 4. `cumprod` maps to the `cumulative_prod_checked` arrow function 5. `cummax` maps to the `cumulative_max` arrow function 6. `cummin` maps to the `cumulative_min` arrow function 7. `signif`, `expm1`, `cospi`, `sinpi`, `tanpi`, `cosh`, `sinh`, `tanh`, `acosh`, `asinh`, `atanh`, `lgamma`, `gamma`, `digamma`, and `trigamma` properly throw an unsupported operation error ### Are these changes tested? Yes, tests were added to "Math group generics work on Array objects" in `arrow/r/tests/testthat/test-compute-arith.R` ### Are there any user-facing changes? No * GitHub Issue: #43163 Authored-by: Patrick Aboyoun <aboyoun.patrick@gene.com> Signed-off-by: Jonathan Keane <jkeane@gmail.com>
Rationale for this change
When support was added for
cumsumin theMathgroup generics it mistakenly mappedsignif,expm1,log1p,cospi,sinpi,tanpi,cosh,sinh,tanh,acosh,asinh,atanh,lgamma,gamma,digamma, andtrigammato thecumulative_sum_checkedarrow function. This PR corrects that mistake and well as adds support forlog2,log1p,cumprod,cummax, andcummin.What changes are included in this PR?
It contains the following changes:
acos,asin,cos,sin,tannow map to the*_checkedarrow function variantslog2maps to thelog2_checkedarrow functionlog1pmaps to thelog1p_checkedarrow functioncumprodmaps to thecumulative_prod_checkedarrow functioncummaxmaps to thecumulative_maxarrow functioncumminmaps to thecumulative_minarrow functionsignif,expm1,cospi,sinpi,tanpi,cosh,sinh,tanh,acosh,asinh,atanh,lgamma,gamma,digamma, andtrigammaproperly throw an unsupported operation errorAre these changes tested?
Yes, tests were added to "Math group generics work on Array objects" in
arrow/r/tests/testthat/test-compute-arith.RAre there any user-facing changes?
No