You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/04/11 11:35:00 UTC

[jira] [Updated] (SPARK-27405) Restrict the range of generated random timestamps

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

Dongjoon Hyun updated SPARK-27405:
----------------------------------
    Priority: Minor  (was: Trivial)

> Restrict the range of generated random timestamps
> -------------------------------------------------
>
>                 Key: SPARK-27405
>                 URL: https://issues.apache.org/jira/browse/SPARK-27405
>             Project: Spark
>          Issue Type: Improvement
>          Components: Tests
>    Affects Versions: 2.4.0
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> The timestampLiteralGen of LiteralGenerator can produce instances of java.sql.Timestamp that cause Long arithmetic overflow on conversion milliseconds to microseconds. The former conversion is performed because Catalyst's Timestamp type stores microseconds since epoch internally. The ticket aims to restrict the range of generated random timestamps to [Long.MaxValue / 1000, Long.MinValue/ 1000].



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