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

Ben Kietzman commented on ARROW-11090:
--------------------------------------

It'd be helpful to have a matrix of expected support/behavior here. For 
example, will we support datetimes in parallel to timestamps or require that 
they be cast to timestamps first? Working in timestamps only is cleaner but 
doesn't easily allow adding whole days to (for example) a date64.

We may want to require that addends to timestamps be durations of the same 
unit; timestamp[ms] + duration[s] requires that one be cast to the other's 
unit. Alternatively we could accept any integer addend and defer unit safety to 
users. Additionally, do we need timestamp-duration as well as 
timestamp+duration?

 

> [C++][R] Support date + datetime arithmetic
> -------------------------------------------
>
>                 Key: ARROW-11090
>                 URL: https://issues.apache.org/jira/browse/ARROW-11090
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++, R
>            Reporter: Jonathan Keane
>            Assignee: Ben Kietzman
>            Priority: Major
>
> [It appears that only subtract on two datetimes is currently 
> supported|https://github.com/apache/arrow/commit/dd94a5809b56b32fe2fb538f688bf568d9642e3b]
>  when there is more supported, we should include support for that in R



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

Reply via email to