Skip to content

Conversation

@raunaqmorarka
Copy link
Contributor

ExpireSnapshots currently does not expose metrics about the operations performed by it to the caller.
This change allows the caller to collect metrics about deleted data, position deletes, equality deletes, manifest lists, manifests and statistics files.
This is needed to allow Trino to show an output similar to https://iceberg.apache.org/docs/latest/spark-procedures/#output_6 when running expire_snaphots procedure in Trino.

@raunaqmorarka raunaqmorarka force-pushed the raunaq/expire-snapshots-report branch 6 times, most recently from 81eea28 to da13abd Compare December 24, 2025 08:56
import org.immutables.value.Value;

@Value.Immutable
public abstract class RemoveSnapshotsReport implements MetricsReport {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wonder if there is a way to get this according to the contract defined here :

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to use MetricsReporter as that is a more flexible approach and similar to org.apache.iceberg.Scan#metricsReporter

@singhpk234 singhpk234 requested a review from nastra December 26, 2025 17:24
@raunaqmorarka raunaqmorarka force-pushed the raunaq/expire-snapshots-report branch from da13abd to e6c8161 Compare December 29, 2025 05:54
@raunaqmorarka raunaqmorarka force-pushed the raunaq/expire-snapshots-report branch 4 times, most recently from 6aafe27 to 37c631d Compare December 29, 2025 06:43
@raunaqmorarka raunaqmorarka force-pushed the raunaq/expire-snapshots-report branch from 37c631d to c21feaf Compare December 31, 2025 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants