Skip to content

[C++][Gandiva] DATE_TRUNC with DAY rounds up to next day sometimes #46841

Open
@lriggs

Description

@lriggs

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

Using DATE_TRUNC('day', val) where val is '1899-01-01 12:00:00.000' will result in a value of 1899-01-02 00:00:00.000 - instead it should be 1899-01-01 00:00:00.000

Similar values with the same problem are 1940-02-29 12:00:00.000 and 1899-12-31 00:00:00.000

Component(s)

Gandiva

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions