Maxim Gekk created SPARK-30754:
----------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]