Skip to content
This repository was archived by the owner on Jan 29, 2022. It is now read-only.

Commit 9c84080

Browse files
author
Luke Lovett
committed
Fix test that parses Strings into Timestamps (HADOOP-226).
1 parent 766922b commit 9c84080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hive/src/test/java/com/mongodb/hadoop/hive/BSONSerDeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void testStringToTimestamp() throws SerDeException {
162162
String value = "2015-08-06 07:32:30.062";
163163
BSONSerDe serde = new BSONSerDe();
164164
Object result = helpDeserialize(serde, columnNames, columnTypes, value);
165-
assertEquals(new Timestamp(1438871550062L), result);
165+
assertEquals(Timestamp.valueOf(value), result);
166166
}
167167

168168
@Test

0 commit comments

Comments
 (0)