Skip to content

Conversation

@wjones127
Copy link
Contributor

Summary

Add a unified WriteStats struct to track statistics across Insert, Update, Delete, and Merge-Insert operations. This enables users to get information about rows written/updated/deleted, files written, and bytes written.

  • InsertBuilder::execute() now returns InsertResult with stats
  • UpdateResult now includes WriteStats
  • DeleteBuilder::execute() now returns DeleteResult with stats
  • MergeStats gains write_stats() accessor for compatibility

Test plan

  • Added test_insert_stats to verify insert statistics
  • Added test_delete_stats to verify delete statistics
  • Added WriteStats assertions to test_update_all
  • Added write_stats() accessor test in merge-insert tests
  • All 988 lance tests pass

🤖 Generated with Claude Code

Add a unified WriteStats struct to track statistics across Insert, Update,
Delete, and Merge-Insert operations. This enables users to get information
about rows written/updated/deleted, files written, and bytes written.

- InsertBuilder::execute() now returns InsertResult with stats
- UpdateResult now includes WriteStats
- DeleteBuilder::execute() now returns DeleteResult with stats
- MergeStats gains write_stats() accessor for compatibility

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@github-actions github-actions bot added the enhancement New feature or request label Jan 11, 2026
@codecov
Copy link

codecov bot commented Jan 11, 2026

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant