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

[jira] [Resolved] (ARROW-14027) [C++][R] Ensure groupers accept scalar inputs (was: Allow me to group_by + summarise() with partitioning fields)

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

Ben Kietzman resolved ARROW-14027.
----------------------------------
    Resolution: Fixed

Issue resolved by pull request 11191
[https://github.com/apache/arrow/pull/11191]

> [C++][R] Ensure groupers accept scalar inputs (was: Allow me to group_by + summarise() with partitioning fields)
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-14027
>                 URL: https://issues.apache.org/jira/browse/ARROW-14027
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, R
>            Reporter: Jonathan Keane
>            Assignee: David Li
>            Priority: Blocker
>              Labels: kernel, pull-request-available
>             Fix For: 6.0.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> If one puts a field that is one of the partitioning variables in {{group_by()}} and then summarises, we get a segfault:
> {code:r}
> library(arrow)
> library(dplyr)
> temp <- tempfile()
> write_dataset(mtcars, path = temp, partitioning = "cyl")
> ds <- open_dataset(temp)
> # this works just fine
> ds %>% 
>   group_by(gear) %>% 
>   summarise(
>     sum(mpg)
>   ) %>% 
>   collect()
> # however this segfaults (regardless of the aggregation, even simply n()) 
> #  *** caught segfault ***
> # address 0x0, cause 'memory not mapped'
> ds %>% 
>   group_by(cyl) %>% 
>   summarise(
>     sum(mpg)
>   ) %>% 
>   collect()
> {code}



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