David Li created ARROW-14630:
--------------------------------

             Summary: [C++] DCHECK in GroupByNode when error encountered
                 Key: ARROW-14630
                 URL: https://issues.apache.org/jira/browse/ARROW-14630
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
    Affects Versions: 6.0.0
            Reporter: Nicola Crane
            Assignee: David Li


[~thisisnic] found that this example crashes:
{code:java}
library(arrow)
library(dplyr)write_dataset(group_by(iris, Species), 
"iris_data")open_dataset("iris_data") %>%
  group_by(Species) %>%
  summarise(mean(Sepal.Length)) %>%
  collect()  {code}
There are two bugs here:
 * StopProducing is written in a way that causes a future to be finished twice, 
triggering a DCHECK.
 * Consume() doesn't set the length of the key column batch, causing a spurious 
error because the group ID datum and the values datum will have different 
lengths.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to