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:24:32 UTC
[GitHub] [arrow] nealrichardson commented on a diff in pull request #13517: ARROW-16871: [R] Implement exp() and sqrt() in Arrow dplyr queries
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