Skip to content

Commit 0c5d8fb

Browse files
committed
simple epochDaysToMicros => daysToMicros
1 parent 7196f6e commit 0c5d8fb

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
@@ -2629,8 +2629,8 @@ object Sequence {
26292629
(num.toLong(start), num.toLong(stop))
26302630
}
26312631
else {
2632-
(DateTimeUtils.epochDaysToMicros(num.toInt(start), zoneId),
2633-
DateTimeUtils.epochDaysToMicros(num.toInt(stop), zoneId))
2632+
(daysToMicros(num.toInt(start), zoneId),
2633+
daysToMicros(num.toInt(stop), zoneId))
26342634
}
26352635

26362636
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
@@ -1845,8 +1845,7 @@ class CollectionExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper
18451845
Cast(Literal("2011-04-01"), DateType),
18461846
Option(Literal(stringToInterval("interval 1 month"))),
18471847
Option(tz)),
1848-
Seq(
1849-
Date.valueOf("2011-03-01"), Date.valueOf("2011-04-01")))
1848+
Seq(Date.valueOf("2011-03-01"), Date.valueOf("2011-04-01")))
18501849
}
18511850
})
18521851
}

0 commit comments

Comments
 (0)