[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to