nealrichardson commented on code in PR #14361:
URL: https://github.com/apache/arrow/pull/14361#discussion_r992903696
##########
r/R/dplyr-funcs.R:
##########
@@ -160,6 +160,17 @@ create_binding_cache <- function() {
register_bindings_type()
register_bindings_augmented()
+ # HACK because random() doesn't work (ARROW-17974)
+ register_scalar_function(
+ "_random_along",
+ function(context, x) {
+ Array$create(runif(length(x)))
+ },
Review Comment:
Cool, thanks, I'll experiment. Weston linked to some other jiras that
suggest that a function with 0 args won't work for other reasons, so that may
not end up working, but we'll see.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]