Skip to content

Commit e8a61c8

Browse files
committed
Fix expected results in IntervalExpressionsSuite
1 parent f08531b commit e8a61c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ class IntervalExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
178178

179179
test("epoch") {
180180
checkEvaluation(IntervalEpoch("0 months"), Decimal(0.0, 18, 6))
181-
checkEvaluation(IntervalEpoch("10000 years"), Decimal(315576000000.0, 18, 6))
182-
checkEvaluation(IntervalEpoch("1 year"), Decimal(31557600.0, 18, 6))
183-
checkEvaluation(IntervalEpoch("-1 year"), Decimal(-31557600.0, 18, 6))
181+
checkEvaluation(IntervalEpoch("10000 years"), Decimal(315569520000.0, 18, 6))
182+
checkEvaluation(IntervalEpoch("1 year"), Decimal(31556952.0, 18, 6))
183+
checkEvaluation(IntervalEpoch("-1 year"), Decimal(-31556952.0, 18, 6))
184184
checkEvaluation(
185185
IntervalEpoch("1 second 1 millisecond 1 microsecond"),
186186
Decimal(1.001001, 18, 6))

0 commit comments

Comments
 (0)