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
fix typo
  • Loading branch information
mgaido91 authored Mar 5, 2018
commit 28e349e3fb2575ce4a44830521eaa7591ccb72c4
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ class ObjectExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
test("SPARK-23586: WrapOption should support interpreted execution") {
val cls = ObjectType(classOf[java.lang.Integer])
val inputObject = BoundReference(0, cls, nullable = true)
val unwrapObject = WrapOption(inputObject, cls)
unwrapObject.resolved
val wrapObject = WrapOption(inputObject, cls)
Seq((1, Some(1)), (null, None)).foreach { case (input, expected) =>
checkEvaluation(unwrapObject, expected, InternalRow.fromSeq(Seq(input)))
checkEvaluation(wrapObject, expected, InternalRow.fromSeq(Seq(input)))
}
}
}