Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/22384#discussion_r216455205
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/util/UnsafeArraySuite.scala
---
@@ -114,15 +114,15 @@ class UnsafeArraySuite extends SparkFunSuite {
assert(unsafeDate.isInstanceOf[UnsafeArrayData])
assert(unsafeDate.numElements == dateArray.length)
dateArray.zipWithIndex.map { case (e, i) =>
- assert(unsafeDate.get(i, DateType) == e)
+ assert(unsafeDate.get(i, DateType).asInstanceOf[Int] == e)
--- End diff --
Issue here is that you can't really compare `AnyRef` to a primitive, not
via boxing or unboxing; this may just be making some Scala coercion explicit
but seemed worthwhile
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]