You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/09/03 17:26:00 UTC

[jira] [Updated] (ARROW-13543) [R] Handle summarize() with 0 arguments or no aggregate functions

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

ASF GitHub Bot updated ARROW-13543:
-----------------------------------
    Labels: pull-request-available query-engine  (was: query-engine)

> [R] Handle summarize() with 0 arguments or no aggregate functions
> -----------------------------------------------------------------
>
>                 Key: ARROW-13543
>                 URL: https://issues.apache.org/jira/browse/ARROW-13543
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>            Reporter: Ian Cook
>            Assignee: Neal Richardson
>            Priority: Major
>              Labels: pull-request-available, query-engine
>             Fix For: 6.0.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Following ARROW-13344, we should handle the case in which the user calls {{summarise()}} but does not call any aggregate functions in it.
> Currently this is unhandled and results in errors (which are then are converted to warnings) like:
> {code:java}
> Warning: Error in x[c("fun", "options")] : object of type 'environment' is not subsettable ; pulling data into R{code}
> or when the expression in {{summarise()}} has only scalar literals:
> {code:java}
> Warning: Error : $ operator is invalid for atomic vectors
> ; pulling data into R {code}
> or when there are zero arguments passed to {{summarise()}} and there is no {{group_by()}} preceding it:
> {code:java}
> Warning: Error : Invalid input type, expected 'character' actual 'NULL'
> ; pulling data into R {code}
> We should aim for consistency with {{dplyr::summarise()}} in these cases, but if that's not practical then we should detect this case and throw a more informative error.



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