Skip to content

Conversation

@somasays
Copy link
Contributor

Summary

  • Added snapshot_properties parameter to Transaction.upsert() and Table.upsert() methods
  • The properties are passed to both underlying overwrite() and append() operations, so they are applied to all snapshots created by the upsert
  • Added test to verify snapshot properties are correctly applied

Background

Currently, the upsert() operation doesn't support snapshot_properties, while other operations like append(), overwrite(), and delete() do.

Since upsert creates multiple snapshots (one from overwrite() for updates and one from append() for inserts), the snapshot_properties are applied to all of them, which is consistent with how overwrite() handles properties internally.

Closes #2659

Test plan

  • Added test_upsert_snapshot_properties test that verifies properties are applied to all snapshots created by upsert
  • All existing upsert tests pass (22 tests)
  • All lint checks pass

Add snapshot_properties parameter to both Transaction.upsert() and
Table.upsert() methods, allowing custom properties to be added to
the snapshot summary during upsert operations.

The snapshot_properties are passed to both the underlying overwrite()
and append() operations, so they are applied to all snapshots created
by the upsert.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support snapshot_properties in upsert operation

1 participant