You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When CAST a TIMESTAMP(x) value AS TIMESTAMP(y), and x > y, the decimal part that exceeds the accuracy will be directly ignored instead of rounding.
#11995
Closed
2 tasks done
DDDDDstar opened this issue
May 10, 2024
· 2 comments
· Fixed by #12011
What happens?
When CAST a TIMESTAMP(x) value AS TIMESTAMP(y), and x > y, the decimal part that exceeds the accuracy will be directly ignored instead of rounding.
To Reproduce
The expected result is '2024-05-10 11:06:34', while the actual result is '2024-05-10 11:06:33'.
OS:
macos
DuckDB Version:
v0.10.2
DuckDB Client:
Command line terminal
Full Name:
Shixin Wan
Affiliation:
ApeCloud
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Not applicable - the reproduction does not require a data set
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: