Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Oct 2, 2019
1 parent 06541fa commit c138227
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,8 @@ class UnsafeRowConverterSuite extends SparkFunSuite with Matchers with PlanTestB
val udt = new TestUDT.MyDenseVectorUDT()
val udtRow = InternalRow.fromSeq(Seq(udt.serialize(vector)))
val fields5 = Array[DataType](udt)
assert(convertBackToInternalRow(udtRow, fields5) === udtRow)
val safeProj = SafeProjection.create(fields5)
val safeRow = safeProj(udtRow)
assert(convertBackToInternalRow(udtRow, fields5) === safeRow)
}
}

0 comments on commit c138227

Please sign in to comment.