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
❯ selectto_timestamp_seconds(a) from (select to_timestamp_seconds(1) as a)A;
+-------------------------+
| totimestampseconds(a.a) |
+-------------------------+
| 1969-12-31 16:00:01 |
+-------------------------+
1 row in set. Query took 0.000 seconds.
while to_timestamp_millis will make it crash
❯ selectto_timestamp_millis(a) from (select to_timestamp_millis(1) as a)A;
thread 'main' panicked at 'invalid or out-of-range datetime', /Users/willy/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/chrono-0.4.19/src/naive/datetime.rs:117:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Expected behavior
it should return 1970-01-01 00:00:01 . I feel like that timezone conversion is applied somewhere. (I'm in UTC+8)
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
To Reproduce
while
to_timestamp_millis
will make it crashExpected behavior
it should return 1970-01-01 00:00:01 . I feel like that timezone conversion is applied somewhere. (I'm in UTC+8)
Additional context
The text was updated successfully, but these errors were encountered: