Skip to content

Commit 3ed284c

Browse files
fix the date type comparison
1 parent f1b6749 commit 3ed284c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveInspectorSuite.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ class HiveInspectorSuite extends FunSuite with HiveInspectors with BeforeAndAfte
145145
case (r1: Array[Byte], r2: Array[Byte])
146146
if r1 != null && r2 != null && r1.length == r2.length =>
147147
r1.zip(r2).map { case (b1, b2) => assert(b1 == b2) }
148+
case (r1: Date, r2: Date) => assert(r1.compareTo(r2) == 0)
148149
case (r1, r2) => assert(r1 == r2)
149150
}
150151
}

0 commit comments

Comments
 (0)