Skip to content

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

@xxlaykxx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions