Github user mgaido91 commented on a diff in the pull request:
https://github.com/apache/spark/pull/21008#discussion_r183065347
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala
---
@@ -870,24 +870,14 @@ object DateTimeUtils {
* If time1 and time2 having the same day of month, or both are the last
day of month,
* it returns an integer (time under a day will be ignored).
*
- * Otherwise, the difference is calculated based on 31 days per month,
and rounding to
- * 8 digits.
+ * Otherwise, the difference is calculated based on 31 days per month.
+ * If `roundOff` is set to true, the result is rounded to 8 decimal
places.
*/
- def monthsBetween(time1: SQLTimestamp, time2: SQLTimestamp): Double = {
--- End diff --
yes, it was never used
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]