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/10/16 17:05:00 UTC
[jira] [Resolved] (ARROW-14321) [R] segfault converting dictionary
ChunkedArray with 0 chunks
[ https://issues.apache.org/jira/browse/ARROW-14321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Kietzman resolved ARROW-14321.
----------------------------------
Resolution: Fixed
Issue resolved by pull request 11428
[https://github.com/apache/arrow/pull/11428]
> [R] segfault converting dictionary ChunkedArray with 0 chunks
> -------------------------------------------------------------
>
> Key: ARROW-14321
> URL: https://issues.apache.org/jira/browse/ARROW-14321
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Reporter: Jonathan Keane
> Assignee: Weston Pace
> Priority: Major
> Labels: query-engine
> Fix For: 6.0.0
>
>
> 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)