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

Joris Van den Bossche commented on ARROW-11090:
-----------------------------------------------

Note that the example you show is for timestamp / interval arithmetic, while 
for now this issue (and all the child tasks you created) are for timestamp / 
timestamp or timestamp / duration, which are generally much simpler operations 
than once intervals are involved (which don't have a fixed length). 

> Perhaps another important implementation detail is that many date arithmetic 
> operations are implemented by first converting a date to a timestamp and then 
> calling the corresponding implementation for timestamp

The date64 is basically already the same memory layout as timestamp[ms]. For 
date32 (days since epoch) that would be a bit more costly conversion.

> [C++] Support temporal arithmetic ({time,date}{32,64}, timestamp, duration)
> ---------------------------------------------------------------------------
>
>                 Key: ARROW-11090
>                 URL: https://issues.apache.org/jira/browse/ARROW-11090
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Jonathan Keane
>            Priority: Major
>              Labels: kernel
>             Fix For: 7.0.0
>
>
> [It appears that only subtract on two timestamps 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