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 2022/07/15 12:39:00 UTC

[jira] [Commented] (ARROW-17085) [R] group_vars() returns NULL

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

Neal Richardson commented on ARROW-17085:
-----------------------------------------

https://github.com/apache/arrow/blob/master/r/R/dplyr-group-by.R#L64-L68 is where you would change it, would you like to make a PR?


> [R] group_vars(<ArrowTabular>) returns NULL
> -------------------------------------------
>
>                 Key: ARROW-17085
>                 URL: https://issues.apache.org/jira/browse/ARROW-17085
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>    Affects Versions: 8.0.0
>            Reporter: SHIMA Tatsuya
>            Priority: Major
>
> {code:r}
> mtcars |> dplyr::group_vars()
> #> character(0)
> mtcars |> arrow:::as_adq() |> dplyr::group_vars()
> #> character(0)
> mtcars |> arrow::arrow_table() |> dplyr::group_vars()
> #> NULL
> {code}
> {{dplyr::group_vars(<data.frame>)}} does not return NULL, so the following code will result in an error.
> {code:r}
> mtcars |> arrow::arrow_table() |> dtplyr::lazy_dt()
> #> Error in new_step(parent, vars = names(parent), groups = groups, locals = list(), : is.character(groups) is not TRUE
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)