danny0405 commented on code in PR #13987:
URL: https://github.com/apache/hudi/pull/13987#discussion_r2387478730


##########
hudi-hadoop-common/src/test/java/org/apache/hudi/common/functional/TestHoodieLogFormat.java:
##########
@@ -743,12 +748,17 @@ private void 
testBasicAppendAndScanMultipleFiles(ExternalSpillableMap.DiskMapTyp
 
     List<IndexedRecord> scannedRecords = new ArrayList<>();
     for (HoodieRecord record : scanner) {
-      scannedRecords.add(record.toIndexedRecord(schema, 
CollectionUtils.emptyProps()).get().getData());
+      Object data = record.toIndexedRecord(schema, 
CollectionUtils.emptyProps()).get().getData();
+      if (data instanceof SerializableIndexedRecord) {
+        scannedRecords.add((GenericRecord) ((SerializableIndexedRecord) 
data).getData());

Review Comment:
   The type case `(GenericRecord)` is unnecessary.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to