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 R. Owen (Jira)" <ji...@apache.org> on 2020/02/11 15:09:00 UTC

[jira] [Resolved] (SPARK-30754) Reuse results of floorDiv in calculations of floorMod in DateTimeUtils

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

Sean R. Owen resolved SPARK-30754.
----------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

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

> Reuse results of floorDiv in calculations of floorMod in DateTimeUtils
> ----------------------------------------------------------------------
>
>                 Key: SPARK-30754
>                 URL: https://issues.apache.org/jira/browse/SPARK-30754
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Minor
>             Fix For: 3.1.0
>
>
> A couple methods in DateTimeUtils call Math.floorDiv and Math.floorMod with the same arguments. In this way, results of Math.floorDiv can be reused in calculation of Math.floorMod. For example, this optimization can be applied to the microsToInstant and truncDate.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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