You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (JIRA)" <ji...@apache.org> on 2019/04/07 22:04:00 UTC
[jira] [Created] (SPARK-27405) Restrict the range of generated
random timestamps
Maxim Gekk created SPARK-27405:
----------------------------------
Summary: 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
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