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

[jira] [Updated] (ARROW-14586) [R] summarise() with nested aggregate expressions has a confusing error

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

Dewey Dunnington updated ARROW-14586:
-------------------------------------
    Attachment: P_20190801_194513.jpg

> [R] summarise() with nested aggregate expressions has a confusing error
> -----------------------------------------------------------------------
>
>                 Key: ARROW-14586
>                 URL: https://issues.apache.org/jira/browse/ARROW-14586
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>            Reporter: Dewey Dunnington
>            Assignee: Dewey Dunnington
>            Priority: Minor
>
> This affects code along the lines of {{summarise(mean(mean(var))}} where the inner expression is an aggregate function. This is probably not useful but the error it gives is not particularly helpful:
> {code:R}
> library(arrow, warn.conflicts = FALSE)
> library(dplyr, warn.conflicts = FALSE)
> RecordBatch$create(x = 4) %>% 
>   summarise(y = mean(mean(x)))
> #> Warning: Error in mean(..temp0) : object '..temp0' not found; pulling data into
> #> R
> #> # A tibble: 1 × 1
> #>       y
> #>   <dbl>
> #> 1     4
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)