Skip to content

[C++][Gandiva] DATE_TRUNC with Minute rounds up to next minute sometimes #49775

Closed

Description

@xxlaykxx

Describe the bug, including details regarding any error messages, version, and platform.

Using DATE_TRUNC('minute', val) where val is '0862-08-10 06:01:12.476' will result in a value of 0862-08-10 06:02:00 - instead it should be 0862-08-10 06:01:00

Similar values with the same problem are 1242-04-09 19:54:20.000 and 1272-01-08 20:43:24.000

Component(s)

Gandiva

Activity

  1. abtom87 commented on Apr 22, 2026

    @abtom87
    Contributor

    Is this the macro that is relevant? DATE_TRUNC_FUNCTIONS(TYPE)

  2. thisisnic commented on Oct 26, 2026

    @thisisnic
    Member

    Fixed in #46842

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions