You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Dewey Dunnington (Jira)" <ji...@apache.org> on 2021/12/17 19:12:00 UTC
[jira] [Commented] (ARROW-13087) [R] Expose Parquet ArrowReaderProperties::coerce_int96_timestamp_unit_
[ https://issues.apache.org/jira/browse/ARROW-13087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17461621#comment-17461621 ]
Dewey Dunnington commented on ARROW-13087:
------------------------------------------
Reprex:
{code:R}
library(arrow, warn.conflicts = FALSE)
tf <- tempfile()
write_parquet(
data.frame(a = as.POSIXct(c("1000-01-01", "2000-01-01"))),
tf,
use_deprecated_int96_timestamps = TRUE, version = "1.0"
)
props <- ParquetArrowReaderProperties$create()
props$set_coerce_int96_timestamp_unit(TimeUnit$MICRO)
#> Error in eval(expr, envir, enclos): attempt to apply non-function
read_parquet(tf, props = props, as_data_frame = FALSE)
#> Table
#> 2 rows x 1 columns
#> $a <timestamp[ns]>
#>
#> See $metadata for additional Schema metadata
{code}
Where this lives in the package:
https://github.com/apache/arrow/blob/master/r/R/parquet.R#L572-L595
https://github.com/apache/arrow/blob/master/r/src/parquet.cpp#L41-L70
https://github.com/apache/arrow/blob/master/cpp/src/parquet/properties.h#L612-L616
> [R] Expose Parquet ArrowReaderProperties::coerce_int96_timestamp_unit_
> ----------------------------------------------------------------------
>
> Key: ARROW-13087
> URL: https://issues.apache.org/jira/browse/ARROW-13087
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Antoine Pitrou
> Priority: Minor
> Labels: good-first-issue
> Fix For: 7.0.0
>
>
> As added in ARROW-12096.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)