Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-14586

[R] summarise() with nested aggregate expressions has a confusing error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 7.0.0
    • R

    Description

      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:

      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
      

      Attachments

        Issue Links

          Activity

            People

              paleolimbot Dewey Dunnington
              paleolimbot Dewey Dunnington
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h