You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2018/01/22 21:20:01 UTC

[jira] [Resolved] (SPARK-10439) Catalyst should check for overflow / underflow of date and timestamp values

     [ https://issues.apache.org/jira/browse/SPARK-10439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcelo Vanzin resolved SPARK-10439.
------------------------------------
    Resolution: Won't Fix

Doesn't look like there's any interest in fixing this.

> Catalyst should check for overflow / underflow of date and timestamp values
> ---------------------------------------------------------------------------
>
>                 Key: SPARK-10439
>                 URL: https://issues.apache.org/jira/browse/SPARK-10439
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.5.0
>            Reporter: Marcelo Vanzin
>            Priority: Minor
>
> While testing some code, I noticed that a few methods in {{DateTimeUtils}} are prone to overflow and underflow.
> For example, {{millisToDays}} can overflow the return type ({{Int}}) if a large enough input value is provided.
> Similarly, {{fromJavaTimestamp}} converts milliseconds to microseconds, which can overflow if the input is {{> Long.MAX_VALUE / 1000}} (or underflow in the negative case).
> There might be others but these were the ones that caught my eye.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org