You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Morten Telling (Jira)" <ji...@apache.org> on 2022/08/16 09:24:00 UTC
[jira] [Created] (SPARK-40104) MillisToTimestamp overflows on Long.MAX_VALUE
Morten Telling created SPARK-40104:
--------------------------------------
Summary: MillisToTimestamp overflows on Long.MAX_VALUE
Key: SPARK-40104
URL: https://issues.apache.org/jira/browse/SPARK-40104
Project: Spark
Issue Type: Bug
Components: Spark Core
Affects Versions: 3.2.2, 3.3.0, 3.2.1, 3.2.0
Reporter: Morten Telling
MillisToTimestamp throws an ArithmeticOverflowException on Long.MAX_VALUE even though Instant.ofEpochMillis(Long.MAX_VALUE) is valid.
The reason this happens is that MillisToTimestamp delegates to MicrosToTimestamp and so it multiplies the input with a factor and tries to fit that into a long.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org