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

Weston Pace commented on ARROW-14098:
-------------------------------------

There are a fair number of differences between this and DATEDIFF.  DATEDIFF 
returns the number of boundaries crossed.  For example, 
DATEDIFF(2021-01-02T00:00:00, 2021-01-01T23:59:59, DAYS) would yield "1" and 
this kernel yields 1 second.

Other than the semantic meaning:

DATEDIFF returns an integer, this returns a duration
DATEDIFF requires taking the time zone into account for timestamps with time 
zones, this kernel would not.

> [C++] subtract(time, time) -> duration kernel
> ---------------------------------------------
>
>                 Key: ARROW-14098
>                 URL: https://issues.apache.org/jira/browse/ARROW-14098
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: C++
>            Reporter: Phillip Cloud
>            Priority: Major
>
> Issue to track subtraction of times.



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

Reply via email to