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


##########
hudi-common/src/main/java/org/apache/hudi/common/table/log/HoodieMergedLogRecordScanner.java:
##########
@@ -111,8 +112,10 @@ protected HoodieMergedLogRecordScanner(HoodieStorage 
storage, String basePath, L
     try {
       this.maxMemorySizeInBytes = maxMemorySizeInBytes;
       // Store merged records for all versions for this log file, set the 
in-memory footprint to maxInMemoryMapSize
-      this.records = new ExternalSpillableMap<>(maxMemorySizeInBytes, 
spillableMapBasePath, new DefaultSizeEstimator(),
-          new HoodieRecordSizeEstimator(readerSchema), diskMapType, new 
DefaultSerializer<>(), isBitCaskDiskMapCompressionEnabled, 
getClass().getSimpleName());
+      this.records = logFilePaths.isEmpty() ?
+          new ExternalSpillableMap<>(maxMemorySizeInBytes, 
spillableMapBasePath, new DefaultSizeEstimator(),

Review Comment:
   The title does not match the code here.



-- 
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