Skip to content

Commit 17bac20

Browse files
authored
[iceberg] Fix missing parent snapshot id in createMetadataWithoutBase (#8305)
1 parent b8726cf commit 17bac20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

paimon-core/src/main/java/org/apache/paimon/iceberg/IcebergCommitCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ private void createMetadataWithoutBase(long snapshotId) throws IOException {
395395
new IcebergSnapshot(
396396
snapshotId,
397397
snapshotId,
398-
null,
398+
snapshotId == Snapshot.FIRST_SNAPSHOT_ID ? null : (Long) (snapshotId - 1),
399399
System.currentTimeMillis(),
400400
snapshotSummary,
401401
pathFactory.toManifestListPath(manifestListFileName).toString(),

0 commit comments

Comments
 (0)