We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a64946 commit cb37fe3Copy full SHA for cb37fe3
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala
@@ -494,7 +494,8 @@ class DateExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
494
// Valid range of DateType is [0001-01-01, 9999-12-31]
495
val maxMonthInterval = 10000 * 12
496
checkEvaluation(
497
- AddMonths(Literal(LocalDate.parse("0001-01-01")), Literal(maxMonthInterval)), 2933263)
+ AddMonths(Literal(LocalDate.parse("0001-01-01")), Literal(maxMonthInterval)),
498
+ LocalDate.of(10001, 1, 1).toEpochDay.toInt)
499
500
AddMonths(Literal(Date.valueOf("9999-12-31")), Literal(-1 * maxMonthInterval)), -719529)
501
// Test evaluation results between Interpreted mode and Codegen mode
0 commit comments