Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add tests to LiteralExpressionSuite
  • Loading branch information
MaxGekk committed Mar 4, 2021
commit b826afda86fd27a239730859cb5c7d4db952823d
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ class LiteralExpressionSuite extends SparkFunSuite with ExpressionEvalHelper {
}

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