diff --git a/paimon-core/src/main/java/org/apache/paimon/table/ExpireSnapshotsImpl.java b/paimon-core/src/main/java/org/apache/paimon/table/ExpireSnapshotsImpl.java index f4361481c0c2..48a2a1259be9 100644 --- a/paimon-core/src/main/java/org/apache/paimon/table/ExpireSnapshotsImpl.java +++ b/paimon-core/src/main/java/org/apache/paimon/table/ExpireSnapshotsImpl.java @@ -130,7 +130,7 @@ public int expireUntil(long earliestId, long endExclusiveId) { // write the hint file in order to see the earliest snapshot directly next time // should avoid duplicate writes when the file exists if (snapshotManager.readHint(SnapshotManager.EARLIEST) == null) { - writeEarliestHint(endExclusiveId); + writeEarliestHint(earliestId); } // fast exit