You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2021/11/11 02:29:00 UTC

[jira] [Commented] (ARROW-14668) [R] the {{arrow_}} prefix sometimes doesn't work

    [ https://issues.apache.org/jira/browse/ARROW-14668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17442048#comment-17442048 ] 

Neal Richardson commented on ARROW-14668:
-----------------------------------------

day_of_week requires options: https://github.com/apache/arrow/blob/master/r/R/dplyr-functions.R#L838

and none were provided in the instance of calling it directly. If you're reaching in to call those functions directly, there's some implementation detail knowledge required. Is there anything we should change here?

> [R] the {{arrow_}} prefix sometimes doesn't work
> ------------------------------------------------
>
>                 Key: ARROW-14668
>                 URL: https://issues.apache.org/jira/browse/ARROW-14668
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>            Reporter: Jonathan Keane
>            Priority: Major
>
> Reported by tomek (hasn't yet created a Jira it would appear)
> {code}
> library(arrow, warn.conflicts = FALSE)
> #> See arrow_info() for available features
> library(dplyr, warn.conflicts = FALSE)
> tab <- Table$create(data.frame(now = Sys.time()))
> tab %>%
>   mutate(wday(now)) %>% 
>   collect
> #>                   now wday(now)
> #> 1 2021-11-10 17:33:24         4
> tab %>% 
>   mutate(arrow_day_of_week(now))
> #> Warning: Expression arrow_day_of_week(now) not supported in Arrow; pulling data
> #> into R
> #> Error: Problem with `mutate()` input `..1`.
> #> ℹ `..1 = arrow_day_of_week(now)`.
> #> ✖ could not find function "arrow_day_of_week"
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)