Apache Iceberg version
main (development)
Please describe the bug 🐞
Parent: #831
MetadataBuilder.RemoveSnapshots() at metadata.go:488 removes snapshots from the snapshot list and log, but does not prune StatisticsList or PartitionStatsList entries whose SnapshotID matches removed snapshots. This leaves stale statistics entries in table metadata after snapshot expiration.
Apache Iceberg version
main (development)
Please describe the bug 🐞
Parent: #831
MetadataBuilder.RemoveSnapshots()atmetadata.go:488removes snapshots from the snapshot list and log, but does not pruneStatisticsListorPartitionStatsListentries whoseSnapshotIDmatches removed snapshots. This leaves stale statistics entries in table metadata after snapshot expiration.