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 12:32:00 UTC

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

Dewey Dunnington created ARROW-14586:
----------------------------------------

             Summary: [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


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)