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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to