Skip to content

Fix timestamp_add_interval_months to pass on any date #6814

Closed

Description

@jayzhan211

Describe the bug

Ref #3321

timestamp_add_interval_months fails since month is 7, result is 0.

https://github.com/apache/arrow-datafusion/blob/84832ac3f13af78336f3fa291e88e05f3909faac/datafusion/core/tests/sql/timestamp.rs#L583-L586

To Reproduce

Test this in July.

Expected behavior

Pass the test whenever the date we run it.

Additional context

No response

Activity

  1. changed the title [-]Fail on timestamp_add_interval_months[/-] [+]Fix timestamp_add_interval_months to pass on any date[/+] on Jul 1, 2023
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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions