This is an automated email from the ASF dual-hosted git repository.
jinsongzhou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git
The following commit(s) were added to refs/heads/master by this push:
new 27c4cc08f [Hotfix] Use `propertyAsLong` instead of `propertyAsInt` for
`total-records` (#3284)
27c4cc08f is described below
commit 27c4cc08f4ac48c8a89210a36db4e2bd5d761350
Author: Qishang Zhong <[email protected]>
AuthorDate: Mon Oct 21 16:04:42 2024 +0800
[Hotfix] Use `propertyAsLong` instead of `propertyAsInt` for
`total-records` (#3284)
---
.../org/apache/amoro/server/optimizing/plan/OptimizingEvaluator.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/amoro-ams/src/main/java/org/apache/amoro/server/optimizing/plan/OptimizingEvaluator.java
b/amoro-ams/src/main/java/org/apache/amoro/server/optimizing/plan/OptimizingEvaluator.java
index 22ebd838b..f404592fc 100644
---
a/amoro-ams/src/main/java/org/apache/amoro/server/optimizing/plan/OptimizingEvaluator.java
+++
b/amoro-ams/src/main/java/org/apache/amoro/server/optimizing/plan/OptimizingEvaluator.java
@@ -236,7 +236,8 @@ public class OptimizingEvaluator {
PropertyUtil.propertyAsInt(summary,
SnapshotSummary.TOTAL_DELETE_FILES_PROP, 0);
int totalDataFiles =
PropertyUtil.propertyAsInt(summary,
SnapshotSummary.TOTAL_DATA_FILES_PROP, 0);
- totalFileRecords = PropertyUtil.propertyAsInt(summary,
SnapshotSummary.TOTAL_RECORDS_PROP, 0);
+ totalFileRecords =
+ PropertyUtil.propertyAsLong(summary,
SnapshotSummary.TOTAL_RECORDS_PROP, 0);
totalFileSize = PropertyUtil.propertyAsLong(summary,
SnapshotSummary.TOTAL_FILE_SIZE_PROP, 0);
totalFileCount = totalDeleteFiles + totalDataFiles;
danglingDeleteFileCount =