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

Jonathan Keane updated ARROW-12373:
-----------------------------------
    Summary: [C++] max_partitions < 0 is accepted with no error  (was: 
max_partitions < 0 is accepted with no error)

> [C++] max_partitions < 0 is accepted with no error
> --------------------------------------------------
>
>                 Key: ARROW-12373
>                 URL: https://issues.apache.org/jira/browse/ARROW-12373
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, R
>    Affects Versions: 3.0.0
>            Reporter: Mauricio 'PachĂĄ' Vargas SepĂșlveda
>            Priority: Major
>              Labels: bug
>
> this shouldn't happen, please note the *-*3
> ```
> library(dplyr)
> library(arrow)
> library(testthat)
> try(dir.create("mydir"))
> expect_error(
>     mtcars %>%
>       group_by(cyl) %>%
>       write_dataset("mydir", format = "parquet", max_partitions = -3)
>   )
> Error: ``%>%`(...)` did not throw an error.
> ```



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

Reply via email to