apache / apache/arrow

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

Open
#49,775 1 comment 0 reactions 0 assignees View on GitHub
Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.