You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Nicola Crane (Jira)" <ji...@apache.org> on 2021/09/14 08:30:00 UTC
[jira] [Commented] (ARROW-13985) [R] Warning/error if
dplyr::summarise() called when column is renamed but the original should be
displayed in output too
[ https://issues.apache.org/jira/browse/ARROW-13985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17414806#comment-17414806 ]
Nicola Crane commented on ARROW-13985:
--------------------------------------
Probably more complicated than this, but I think it basically needs something like this: https://github.com/apache/arrow/blob/672149b68f3c8878e0f62a1bfde122092d734c0d/r/R/dplyr-mutate.R#L74-L85
> [R] Warning/error if dplyr::summarise() called when column is renamed but the original should be displayed in output too
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: ARROW-13985
> URL: https://issues.apache.org/jira/browse/ARROW-13985
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Nicola Crane
> Priority: Minor
>
> I was playing around with contrived examples to come up with tests for the dplyr::distinct() implementation, and tried this code:
> {code:java}
> tbl <- example_data
> tbl$some_grouping <- rep(c(1, 2), 5)
> tbl %>% Table$create() %>%
> group_by(some_grouping, false, lgl) %>%
> summarise(x = lgl) %>%
> collect()
> {code}
> but got this warning/error message:
> {{Warning: Error in .f(.x[[i]], ...) : attempt to apply non-function; pulling data into R}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)