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

Ian Cook updated ARROW-13543:
-----------------------------
    Description: 
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.

  was:
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 has only scalar literals:
{code:java}
Warning: Error : $ operator is invalid for atomic vectors
; pulling data into R {code}
We should aim for consistency with {{dplyr::summarise()}} but if that's not 
practical then we should detect this case and throw a more informative error.


> [R] Errors when no aggregate function in summarise()
> ----------------------------------------------------
>
>                 Key: ARROW-13543
>                 URL: https://issues.apache.org/jira/browse/ARROW-13543
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>            Reporter: Ian Cook
>            Priority: Major
>             Fix For: 6.0.0
>
>
> 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)

Reply via email to