You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2021/10/14 17:57:00 UTC
[jira] [Updated] (ARROW-14321) [C++] segfault in OrderBySinkNode
when filtering to 0 rows
[ https://issues.apache.org/jira/browse/ARROW-14321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neal Richardson updated ARROW-14321:
------------------------------------
Summary: [C++] segfault in OrderBySinkNode when filtering to 0 rows (was: [C++] segfault in OrderBySinkNode)
> [C++] segfault in OrderBySinkNode when filtering to 0 rows
> ----------------------------------------------------------
>
> Key: ARROW-14321
> URL: https://issues.apache.org/jira/browse/ARROW-14321
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Reporter: Jonathan Keane
> Priority: Major
>
> It appears to happen when one of the filter parts has no matching rows:
> {code:r}
> library(arrow)
> library(dplyr)
> first_date <- lubridate::ymd_hms("2015-04-29 03:12:39")
> df1 <- tibble::tibble(
> int = 1:10,
> dbl = as.numeric(1:10),
> lgl = rep(c(TRUE, FALSE, NA, TRUE, FALSE), 2),
> chr = letters[1:10],
> fct = factor(LETTERS[1:10]),
> ts = first_date + lubridate::days(1:10)
> )
> ds <- InMemoryDataset$create(df1)
> # works
> ds %>%
> filter(int < 8) %>%
> arrange(dbl) %>%
> collect()
> # segfaults
> ds %>%
> filter(int < 8, int > 55) %>%
> arrange(dbl) %>%
> collect()
> segfaults
> ds %>%
> filter(int < 0) %>%
> arrange(dbl) %>%
> collect()
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)