You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2020/05/14 20:51:01 UTC

[jira] [Commented] (ARROW-8726) [C++][Dataset] Mis-specified DirectoryPartitioning incorrectly uses the file name as value

    [ https://issues.apache.org/jira/browse/ARROW-8726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17107669#comment-17107669 ] 

Neal Richardson commented on ARROW-8726:
----------------------------------------

[~jonkeane] the error is because you've filtered to 0 rows ({{all(mtcars$cyl %in% c(4, 6, 8))}}); it's not cool, but it's not related to this partitioning.

> [C++][Dataset] Mis-specified DirectoryPartitioning incorrectly uses the file name as value
> ------------------------------------------------------------------------------------------
>
>                 Key: ARROW-8726
>                 URL: https://issues.apache.org/jira/browse/ARROW-8726
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>            Reporter: Jonathan Keane
>            Assignee: Francois Saint-Jacques
>            Priority: Major
>             Fix For: 1.0.0
>
>
> Calling filter + collect on a dataset with a mis-specified partitioning causes a segfault. Though this is clearly input error, it would be nice if there was some guidance that something was wrong with the partitioning.
> {code:r}
> library(arrow)
> library(dplyr)
> dir.create("multi_mtcars/one", recursive = TRUE)
> dir.create("multi_mtcars/two", recursive = TRUE)
> write_parquet(mtcars, "multi_mtcars/one/mtcars.parquet")
> write_parquet(mtcars, "multi_mtcars/two/mtcars.parquet")
> ds <- open_dataset("multi_mtcars", partitioning = c("level", "nothing"))
> # the following will segfault
> ds %>%
>   filter(cyl > 8) %>% 
>   collect()
> {code}



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