weibangpeng opened a new pull request, #8305: URL: https://github.com/apache/paimon/pull/8305
## Summary - Fix `parent_id` incorrectly set to `null` for non-first snapshots when `createMetadataWithoutBase` is used - Iceberg snapshots 2+ now have `parentId = snapshotId - 1` instead of `null` ## Root cause When previous Iceberg metadata files are expired, `createMetadata` falls back to `createMetadataWithoutBase`, which hardcoded `parentId = null` regardless of whether it's the first snapshot or not. This breaks the Iceberg snapshot parent chain. ## Fix Use `snapshotId - 1` as `parentId` for non-first snapshots (snapshot 1 correctly keeps `parentId = null`). Closes #5860 -- 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]
