You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2022/07/11 18:43:00 UTC

[jira] [Created] (ARROW-17043) [C++] temporal addition and subtraction with integers

Neal Richardson created ARROW-17043:
---------------------------------------

             Summary: [C++] temporal addition and subtraction with integers
                 Key: ARROW-17043
                 URL: https://issues.apache.org/jira/browse/ARROW-17043
             Project: Apache Arrow
          Issue Type: Sub-task
          Components: C++
            Reporter: Neal Richardson


{{date64 + intX}} would be equivalent to {{date64 + intX->cast(duration(unit = "d"))}}
{{timestamp[ms] + intX}} would be equivalent to {{timestamp[ms] + intX->cast(timestamp(unit = "ms"))}}
etc.

Multiplication and division probably don't make sense, but addition and subtraction do, at least saves you the trouble of having to convert to a Duration first.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)