Skip to content

API: Clarify that a snapshot's operation describes committed changes - #17611

Open
dramaticlly wants to merge 1 commit into
apache:mainfrom
dramaticlly:snapshotOpsType
Open

API: Clarify that a snapshot's operation describes committed changes#17611
dramaticlly wants to merge 1 commit into
apache:mainfrom
dramaticlly:snapshotOpsType

Conversation

@dramaticlly

Copy link
Copy Markdown
Contributor

In the 08/11 morning meeting of Efficient column updates sync
, @rdblue raised a good point that we need more clarification on snapshot's operation type, as it describe the physical operation instead of write intend.

This PR updated the existing Javadoc to align with existing spec in https://iceberg.apache.org/spec/#snapshots, also remove the implementation details.

The Javadoc for DataOperations mapped each value to the API that
produces it, which implied that the operation reflects the intent of a
write. Snapshot operations are determined by the changes that are
committed instead, so a single API can produce different operations:
RowDelta produces append when it only added data files and delete when
it only added delete files.

Each value now uses the description from the table spec so that the two
definitions do not diverge.
@github-actions github-actions Bot added the API label Aug 11, 2026
@dramaticlly

Copy link
Copy Markdown
Contributor Author

FYI @rdblue @stevenzwu @RussellSpitzer if you want to take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant