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

Slim Bentami commented on ARROW-9219:
-------------------------------------

Thank you Neil,
i did upgrade to 4.0.2 and the install worked and the write_parquet function 
worked as well with the desired options. 
however i have a new problem: the timestamp now looks like this: 2020-06-03 
18:00:00.000
when i was hoping for this: 1591207200000
(i am looking at it using dremio)

> [R] coerce_timestamps in Parquet write options does not work
> ------------------------------------------------------------
>
>                 Key: ARROW-9219
>                 URL: https://issues.apache.org/jira/browse/ARROW-9219
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>    Affects Versions: 0.17.1
>         Environment: macOS 10.15.5, R  4.0.0
>            Reporter: Slim Bentami
>            Assignee: Neal Richardson
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> i am trying to truncate timestamps to milliseconds when writing a parquet 
> file.
> with:
>  
> {{tutu <- as.POSIXct("2020/06/03 18:00:00",tz = "UTC")}}
> if i do:
>  
> {{write_parquet(data.frame(tutu),"~/Downloads/tutu.test.parquet")}}
> i get 1591207200000000
> if i do:
>  
> {{write_parquet(data.frame(tutu),"~/Downloads/tutu.test.parquet", 
> coerce_timestamps = "ms", allow_truncated_timestamps = TRUE)}}
> i get the error message:
>  
> {{Error in parquet___ArrowWriterProperties___Builder__coerce_timestamps(unit) 
> : 
>   argument "unit" is missing, with no default}}
> what am i doing wrong? thanks in advance.



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

Reply via email to