This is an automated email from the ASF dual-hosted git repository.

huaxingao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new e8e97636e3 Data: Replace LongMath.checkedMultiply with 
Math.multiplyExact (#14346)
e8e97636e3 is described below

commit e8e97636e37ebebf19074fd32e5055dcc521aa37
Author: Yuya Ebihara <[email protected]>
AuthorDate: Fri Oct 17 08:43:05 2025 +0900

    Data: Replace LongMath.checkedMultiply with Math.multiplyExact (#14346)
---
 data/src/main/java/org/apache/iceberg/data/BaseDeleteLoader.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/data/src/main/java/org/apache/iceberg/data/BaseDeleteLoader.java 
b/data/src/main/java/org/apache/iceberg/data/BaseDeleteLoader.java
index d0c50a6146..99f5c742d3 100644
--- a/data/src/main/java/org/apache/iceberg/data/BaseDeleteLoader.java
+++ b/data/src/main/java/org/apache/iceberg/data/BaseDeleteLoader.java
@@ -52,7 +52,6 @@ import 
org.apache.iceberg.relocated.com.google.common.base.Preconditions;
 import org.apache.iceberg.relocated.com.google.common.collect.ImmutableList;
 import org.apache.iceberg.relocated.com.google.common.collect.Iterables;
 import org.apache.iceberg.relocated.com.google.common.io.ByteStreams;
-import org.apache.iceberg.relocated.com.google.common.math.LongMath;
 import org.apache.iceberg.types.TypeUtil;
 import org.apache.iceberg.util.CharSequenceMap;
 import org.apache.iceberg.util.ContentFileUtil;
@@ -294,7 +293,7 @@ public class BaseDeleteLoader implements DeleteLoader {
     try {
       long recordCount = deleteFile.recordCount();
       int recordSize = estimateRecordSize(projection);
-      return LongMath.checkedMultiply(recordCount, recordSize);
+      return Math.multiplyExact(recordCount, recordSize);
     } catch (ArithmeticException e) {
       return Long.MAX_VALUE;
     }

Reply via email to