comphead opened a new issue, #7802: URL: https://github.com/apache/arrow-datafusion/issues/7802
### 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 ``` 0001-04-25T00:00:00.000Z ``` ### To Reproduce Run ``` ❯ select to_timestamp(-62125747200); ``` ### Expected behavior Query results should match ### Additional context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
