Skip to content

Commit fb5eaed

Browse files
committed
fix ut
1 parent b0a5e7a commit fb5eaed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hudi-common/src/test/java/org/apache/hudi/common/model/TestPartialUpdateAvroPayload.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ public void testUseLatestRecordMetaValue() throws IOException {
185185
record1.put("child", Arrays.asList("A"));
186186

187187
GenericRecord record2 = new GenericData.Record(schema);
188-
record1.put("_hoodie_commit_time", "20220915000000001");
189-
record1.put("_hoodie_commit_seqno", "20220915000000001_2_000");
188+
record2.put("_hoodie_commit_time", "20220915000000001");
189+
record2.put("_hoodie_commit_seqno", "20220915000000001_2_000");
190190
record2.put("id", "1");
191191
record2.put("partition", "partition1");
192192
record2.put("ts", 1L);
@@ -204,7 +204,7 @@ public void testUseLatestRecordMetaValue() throws IOException {
204204

205205
// let payload2 as the latest one, then should use payload2's meta field's value as the result
206206
GenericRecord mergedRecord2 = (GenericRecord) payload2.preCombine(payload1, schema, properties).getInsertValue(schema, properties).get();
207-
assertEquals(mergedRecord2.get("_hoodie_commit_time").toString(), "20220915000000001");
208-
assertEquals(mergedRecord2.get("_hoodie_commit_seqno").toString(), "20220915000000001_2_000");
207+
assertEquals(mergedRecord2.get("_hoodie_commit_time").toString(), record2.get("_hoodie_commit_time").toString());
208+
assertEquals(mergedRecord2.get("_hoodie_commit_seqno").toString(), record2.get("_hoodie_commit_seqno").toString());
209209
}
210210
}

0 commit comments

Comments
 (0)