anthonylouisbsb opened a new pull request, #13298:
URL: https://github.com/apache/arrow/pull/13298

   When to_timestamp function gets a big value, the function returns an 
incorrect date due integer overflow:
   - TO_TIMESTAMP(1626255099[INT32]) -> '1969-12-14 04:54:53.816'
    
   The correct response would be:
   - TO_TIMESTAMP(1626255099[INT32]) -> '2021-07-14 09:31:39'
   
   The error is because we cast the integers to timestamp(int64) after 
multiplying the result for the total of millis.
   It is necessary to change the order and convert it to int64 before 
multiplying by the number of seconds


-- 
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]

Reply via email to