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
Our implementation of date_trunc on timestamptz includes a rewrite: the time is converted to naive local time first, truncated, and then converted back. This introduces unnecessary ambiguity that is impossible to resolve correctly: the first conversion may convert different timestamptz to the same naive local time, which cannot be convert back to different values in the last step.
Error message/log
Silently produce a wrong value without errors. See repro below:
Describe the bug
Our implementation of
date_trunc
ontimestamptz
includes a rewrite: the time is converted to naive local time first, truncated, and then converted back. This introduces unnecessary ambiguity that is impossible to resolve correctly: the first conversion may convert differenttimestamptz
to the same naive local time, which cannot be convert back to different values in the last step.Error message/log
Silently produce a wrong value without errors. See repro below:
To Reproduce
RisingWave:
Expected behavior
PostgreSQL:
How did you deploy RisingWave?
No response
The version of RisingWave
No response
Additional context
Inspired by #12062 when reasoning whether
date_trunc
is always monotonic in all cases.The text was updated successfully, but these errors were encountered: