You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/05 18:17:09 UTC
[GitHub] [arrow] higgicd opened a new pull request, #13517: ARROW-16871: [R] Implement exp() and sqrt() in Arrow dplyr queries
higgicd opened a new pull request, #13517:
URL: https://github.com/apache/arrow/pull/13517
In response to https://issues.apache.org/jira/browse/ARROW-16871
- implement `sqrt` and `exp` bindings for `dplyr`
- change `sqrt` in `arrow-datum.R` to use `sqrt_checked` rather than `power_checked`
- write tests for `sqrt` and `exp`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow] nealrichardson commented on a diff in pull request #13517: ARROW-16871: [R] Implement exp() and sqrt() in Arrow dplyr queries
Posted by GitBox <gi...@apache.org>.
nealrichardson commented on code in PR #13517:
URL: https://github.com/apache/arrow/pull/13517#discussion_r914078793
##########
r/R/dplyr-funcs-math.R:
##########
@@ -80,4 +80,21 @@ register_bindings_math <- function() {
options = list(ndigits = digits, round_mode = RoundMode$HALF_TO_EVEN)
)
})
+
+ register_binding("sqrt", function(x, ...) {
+ # accepts and ignores ... for consistency with base::trunc()
Review Comment:
I think you can drop `...` from the signature and these comments because the `base::` versions of these particular functions don't take dots:
```
> sqrt
function (x) .Primitive("sqrt")
> exp
function (x) .Primitive("exp")
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow] github-actions[bot] commented on pull request #13517: ARROW-16871: [R] Implement exp() and sqrt() in Arrow dplyr queries
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #13517:
URL: https://github.com/apache/arrow/pull/13517#issuecomment-1175355589
:warning: Ticket **has not been started in JIRA**, please click 'Start Progress'.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow] nealrichardson merged pull request #13517: ARROW-16871: [R] Implement exp() and sqrt() in Arrow dplyr queries
Posted by GitBox <gi...@apache.org>.
nealrichardson merged PR #13517:
URL: https://github.com/apache/arrow/pull/13517
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow] github-actions[bot] commented on pull request #13517: ARROW-16871: [R] Implement exp() and sqrt() in Arrow dplyr queries
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #13517:
URL: https://github.com/apache/arrow/pull/13517#issuecomment-1175355566
https://issues.apache.org/jira/browse/ARROW-16871
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow] higgicd commented on a diff in pull request #13517: ARROW-16871: [R] Implement exp() and sqrt() in Arrow dplyr queries
Posted by GitBox <gi...@apache.org>.
higgicd commented on code in PR #13517:
URL: https://github.com/apache/arrow/pull/13517#discussion_r914095586
##########
r/R/dplyr-funcs-math.R:
##########
@@ -80,4 +80,21 @@ register_bindings_math <- function() {
options = list(ndigits = digits, round_mode = RoundMode$HALF_TO_EVEN)
)
})
+
+ register_binding("sqrt", function(x, ...) {
+ # accepts and ignores ... for consistency with base::trunc()
Review Comment:
Thanks Neal - fixed!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org