Skip to content

Commit b826afd

Browse files
committed
Add tests to LiteralExpressionSuite
1 parent bb0f6cd commit b826afd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ class LiteralExpressionSuite extends SparkFunSuite with ExpressionEvalHelper {
362362
}
363363

364364
test("SPARK-34605: construct literals from arrays of java.time.Duration") {
365-
val duration0 = Duration.parse("P2DT3H4M")
365+
val duration0 = Duration.ofDays(2).plusHours(3).plusMinutes(4)
366366
checkEvaluation(Literal(Array(duration0)), Array(duration0))
367367
val duration1 = Duration.ofHours(-1024)
368368
checkEvaluation(Literal(Array(duration0, duration1)), Array(duration0, duration1))

0 commit comments

Comments
 (0)