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

[jira] [Resolved] (ARROW-14051) [R] Handle conditionals enclosing aggregate expressions

     [ https://issues.apache.org/jira/browse/ARROW-14051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Keane resolved ARROW-14051.
------------------------------------
    Fix Version/s: 7.0.0
       Resolution: Fixed

Issue resolved by pull request 11612
[https://github.com/apache/arrow/pull/11612]

> [R] Handle conditionals enclosing aggregate expressions
> -------------------------------------------------------
>
>                 Key: ARROW-14051
>                 URL: https://issues.apache.org/jira/browse/ARROW-14051
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Ian Cook
>            Assignee: Dewey Dunnington
>            Priority: Major
>              Labels: pull-request-available, query-engine
>             Fix For: 7.0.0
>
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> This type of {{summarise()}} expression does not work in arrow:
> {code:r}
> Table$create(x = c(0, 1, 1), y = c(2, 3, 5), z = c(8, 13, 21)) %>%
>   group_by(x) %>%
>   summarise(r = ifelse(n() > 1, mean(y), mean(z))){code}



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