Skip to content

Negation of Intervals #6311

Closed
Closed

Description

@izveigor

Is your feature request related to a problem or challenge?

I propose to introduce the negation of Intervals into arrow-datafusion.
Example:

query ?
select -interval '5' year;
----
0 years -60 mons 0 days 0 hours 0 mins 0.000000000 secs

Describe the solution you'd like

The function negative and arithmetic_negate starts to support all types of Intervals.

Describe alternatives you've considered

No response

Additional context

PostgreSQL (Date/Time Functions and Operators): https://www.postgresql.org/docs/current/functions-datetime.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions