Skip to content

Commit 076ebce

Browse files
committed
simple epochDaysToMicros => daysToMicros
1 parent d732984 commit 076ebce

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,8 +2631,8 @@ object Sequence {
26312631
(num.toLong(start), num.toLong(stop))
26322632
}
26332633
else {
2634-
(DateTimeUtils.epochDaysToMicros(num.toInt(start), zoneId),
2635-
DateTimeUtils.epochDaysToMicros(num.toInt(stop), zoneId))
2634+
(daysToMicros(num.toInt(start), zoneId),
2635+
daysToMicros(num.toInt(stop), zoneId))
26362636
}
26372637

26382638
val maxEstimatedArrayLength =

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CollectionExpressionsSuite.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,8 +1863,7 @@ class CollectionExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper
18631863
Cast(Literal("2011-04-01"), DateType),
18641864
Option(Literal(stringToInterval("interval 1 month"))),
18651865
Option(tz)),
1866-
Seq(
1867-
Date.valueOf("2011-03-01"), Date.valueOf("2011-04-01")))
1866+
Seq(Date.valueOf("2011-03-01"), Date.valueOf("2011-04-01")))
18681867
}
18691868
})
18701869
}

0 commit comments

Comments
 (0)