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

Mauricio 'Pachá' Vargas Sepúlveda edited comment on ARROW-15792 at 3/9/22, 4:50 
PM:
------------------------------------------------------------------------------------

Thanks. The same code, I did this
 # install Arrow 7.0.0, download the zip in this thread, open the RStudio 
project and source the script (it fails)
 # install Arrow 6.0.2, download the zip in this thread, open the RStudio 
project and source the script (it works)

in both cases I did (my laptop uses 
{{https://packagemanager.rstudio.com/all/__linux__/focal/latest}} as default 
CRAN mirror)

 
{code:java}
Sys.setenv("NOT_CRAN" = TRUE)
devtools::install_version("arrow", "x.y.z"){code}
 

 


was (Author: pachamaltese):
Thanks. The same code, I did this
 # install Arrow 7.0.0, download the zip in this thread, open the RStudio 
project and source the script (it fails)
 # install Arrow 6.0.2, download the zip in this thread, open the RStudio 
project and source the script (it works)

> [R] Error when reading integer-type columns
> -------------------------------------------
>
>                 Key: ARROW-15792
>                 URL: https://issues.apache.org/jira/browse/ARROW-15792
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>    Affects Versions: 7.0.0
>            Reporter: Mauricio 'Pachá' Vargas Sepúlveda
>            Priority: Major
>         Attachments: arrow-error.zip
>
>
> I was reading files that I created on the same laptop, same R version and 
> Arrow version 7.0.0. The error I get when reading int32-type columns is
> {code:java}
> > source("~/github/un_escap/hs12-historic-series/00-create-historic-series.R")
> 2012
> Error in `handle_csv_read_error()`:
> ! NotImplemented: Function 'equal' has no kernel matching input types 
> (array[int32], scalar[string])
> Run `rlang::last_error()` to see where the error occurred. {code}
> Here's a minimal example of the code that caused this
> {code:java}
> library(arrow)
> library(dplyr)
> d <- open_dataset("aggregate_level=0",
>                   partitioning = c("trade_flow", "year", "reporter_iso"))
> d %>%
>   select(reporter, reporter_code, reporter_iso) %>%
>   collect() {code}
> After going back to Arrow R package v6.0.2, it worked. Here "reporter_code" 
> is numeric.
> I've attached a zip with the data.
>  



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

Reply via email to