[ https://issues.apache.org/jira/browse/ARROW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16859867#comment-16859867 ]
Romain François commented on ARROW-3702: ---------------------------------------- {code:r} rnorm(10) #> [1] 0.13506176 0.73326807 0.38532627 -1.06606464 -1.29157473 #> [6] 0.52508708 2.16052209 -0.07074236 -2.40163018 -1.21973122 rnorm(10) #> [1] 0.6669008 0.6079255 1.5880609 -1.0418770 -0.2569900 0.1472028 #> [7] 0.1147444 1.2567987 -1.5699940 -0.2741158 {code} Created on 2019-06-10 by the [reprex package|https://reprex.tidyverse.org] (v0.3.0.9000) > [R] POSIXct mapped to DateType not TimestampType? > ------------------------------------------------- > > Key: ARROW-3702 > URL: https://issues.apache.org/jira/browse/ARROW-3702 > Project: Apache Arrow > Issue Type: Improvement > Components: R > Reporter: Javier Luraschi > Priority: Major > Fix For: 0.14.0 > > > Why was POSIXct mapped to > [DataType|https://arrow.apache.org/docs/cpp/classarrow_1_1_date_type.html#a6aea1fcfd9f998e8fa50f5ae62dbd7e6] > not > [TimestampType|https://arrow.apache.org/docs/cpp/classarrow_1_1_timestamp_type.html#a88e0ba47b82571b3fc3798b6c099499b]? > What are the PRO/CONs from each approach? > This is mostly to interoperate with Spark which choose to map POSIXct to > Timestamps since in Spark, not Arrow, dates do not have a time component. > There is a way to make this work in Spark with POSIXct mapped to DateType by > mapping DateType to timestamps, so mostly looking to understand tradeoffs. > One particular question, timestamps in arrow seem to support timezones, > wouldn't it make more sense to map POSIXct to timestamps? -- This message was sent by Atlassian JIRA (v7.6.3#76005)