Describe the bug
In Datafusion to_timestamp builtin scalar function gives wrong result for negative values
❯ select to_timestamp(-62125747200);
+-----------------------------------+
| to_timestamp(Int64(-62125747200)) |
+-----------------------------------+
| 1969-12-31T23:58:57.874252800 |
+-----------------------------------+
1 row in set. Query took 0.035 seconds.
PG gives correct result
To Reproduce
Run
❯ select to_timestamp(-62125747200);
Expected behavior
Query results should match
Additional context
No response