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

Nicola Crane commented on ARROW-15602:
--------------------------------------

Thanks for reporting this [~eitsupi] !

Outputs from a reprex are below:
{code:r}
tf <- tempfile()
writeLines("x \n 2004-04-01T12:00+09:00", tf)
readr::read_csv(tf, col_names = "x", skip = 1, col_types = "T")
#> # A tibble: 1 × 1
#>   x                  
#>   <dttm>             
#> 1 2004-04-01 03:00:00
arrow::read_csv_arrow(tf, col_names = "x", skip = 1,  col_types = "T")
#> Error in `handle_csv_read_error()`:
#> ! Invalid: In CSV column #0: CSV conversion error to timestamp[s]: invalid 
value ' 2004-04-01T12:00+09:00'
#> /home/nic2/arrow/cpp/src/arrow/csv/converter.cc:550  decoder_.Decode(data, 
size, quoted, &value)
#> /home/nic2/arrow/cpp/src/arrow/csv/parser.h:123  status
#> /home/nic2/arrow/cpp/src/arrow/csv/converter.cc:554  
parser.VisitColumn(col_index, visit)
{code}

> [R] can't read timestamp with timezone from CSV (or other delimited) file
> -------------------------------------------------------------------------
>
>                 Key: ARROW-15602
>                 URL: https://issues.apache.org/jira/browse/ARROW-15602
>             Project: Apache Arrow
>          Issue Type: Improvement
>         Environment: R version 4.1.2 (2021-11-01)
> Platform: x86_64-pc-linux-gnu (64-bit)
> Running under: Ubuntu 20.04.3 LTS
>            Reporter: SHIMA Tatsuya
>            Priority: Major
>
> The following values in a csv file can be read as timestamp by 
> `pyarrow.csv.read_csv` and `readr::read_csv`, but not by 
> `arrow::read_csv_arrow`.
> {code}
> "x"
> "2004-04-01T12:00+09:00"
> {code}



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

Reply via email to