Skip to content

fix: prune StatisticsList and PartitionStatsList in RemoveSnapshots #836

@laskoviymishka

Description

@laskoviymishka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions