You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2019/02/26 15:09:00 UTC

[jira] [Resolved] (SPARK-26978) Avoid magic time constants

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

Sean Owen resolved SPARK-26978.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 23878
[https://github.com/apache/spark/pull/23878]

> Avoid magic time constants
> --------------------------
>
>                 Key: SPARK-26978
>                 URL: https://issues.apache.org/jira/browse/SPARK-26978
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core, SQL
>    Affects Versions: 2.4.0
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Trivial
>             Fix For: 3.0.0
>
>
> Some date/time related functions have magic constants like 1000 and 1000000 which makes harder to track correctness of time/date manipulations. The ticket aims to replace those constant by appropriate constants from DateTimeUtils and java.util.concurrent.TimeUnit._. 



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